spxpertOriginal post
Web Developer
I have a very typical issue "it works on my machine" .I am building an app using Auth, Database and Storage modules. The authentication works perfectly in my local machine, however I published this using Appwrite site and auth fails (login / sign-up) with error saying
"Unexpected token '<', "<!doctype "... is not valid JSON"
What am I doing wrong?
https://petsagram.appwrite.network/
Summary
A user experienced authorization issues when publishing their app with Appwrite due to the expected JSON response being returned as HTML instead. The problem was resolved by identifying and correcting the response format to return JSON instead of HTML.