Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Am get the following error; what could be the problem?

JQMIGRATE: Migrate is installed, version 3.0.0
script:1

Failed to load resource: the server responded with a status of 500 (Internal Server Error)
index.action:1 Refused to execute script from ‘https://url/api/files/script?_rev=483a1a7’ because its MIME type (‘application/json’) is not executable, and strict MIME type checking is enabled.
index.js:26 Initializing Header Bar v28.0.2
form.js?_rev=483a1a7:242 Ouwt loaded
icon.png:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)

1 Like

Hi @dmaritim

Thank you for your post! Where are you seeing this issue?

If it’s in the browser only, maybe you need to clear cache in the same way as @kpvandivier suggested for a similar issue:

Thanks!

@Gassim Thank you for this response. I will tried it out and give you my outcome.

@Gassim it hard reload resolved the issue. Thank you.

1 Like

Thank you! Glad to hear that, please mark the post as solved. :pray:

@Gassim I encountered an issue when trying to access a document with external access enabled in DHIS2 version 2.41.5. Despite having set the document’s sharing settings to external access,

I received the following error when trying to access the document through the direct API link:

HTTP Status 500 – Internal Server Error
Message: Authentication principal is not supported; principal: anonymousUser
...
java.lang.RuntimeException: Authentication principal is not supported; principal:anonymousUser
...

What Works and What Doesn’t:

  • Works: In DHIS2 v2.40.8.2, the same configuration with the same document sharing settings works as expected, allowing external access without a login.

  • Doesn’t Work: In DHIS2 v2.41.5, despite setting external access correctly, the same API call results in a 500 Internal Server Error caused by a security/authentication issue.

I would appreciate any help on resolving this. Thanks.