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)
@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.