App works fine on local but when deployed I'm getting SyntaxError: Unexpected token

This is the error: VM60705:1 Uncaught (in promise) SyntaxError: Unexpected token ‘<’, "<!DOCTYPE "… is not valid JSON

This is the url https://nasa-images-api.onrender.com/nasa-daily
And the repository GitHub - DavidCibin/NASA-Images-API: App created to practice React and usage of API

What other information would be helpful to add it here?

Hi there,

This appears to be an application error. It looks like the code is expecting to receive JSON but is instead getting HTML.

Let us know if you have any further questions.

Regards,
Mike


Render Support Engineer, MT (UTC-6)