I have had several weeks if not months battling with this particular error connecting to google earth engine in dhis2 version 2.35.
I need assistance if someone has been successful implementing it.
I followed the process from the documentation and these are the steps:
Registered for google cloud account
created service account with api credentials and downloaded the json file
authenticated the account.
activated google earth engine api
uploaded the json file to the home of dhis2 …/config/dhis-google-auth.json
Restarted the service and still could not access the google earth service with the console error : Could not load credentials from dhis-google-auth.json
Please see these instructions in this image. I hope it helps. I understand from @austin’s answer is that the issue is with typing in the private key and the image proves it because I think the linting should make the key look purple:
Yes, I believe @Gassim is correct - there should be no newline characters within a quoted string literal. If this is the case, you should revert to \n, I believe
There is no error response on the connection, however after restart and accessing the Maps App, attempt to access any of the google earth engine service gives the attached response from the screenshot below.