Skip to content
Back

Can't add web platform to the project, throws error

  • 0
  • Self Hosted
Ludwig
11 Nov, 2024, 00:48

When I try to add the first platform to my project (self-hosted Appwrite) nothing happens when I click on "web" (or any other option). I just see that error in the devtools console Uncaught (in promise) SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

I had previously deleted the initial project and re-created it with the same name, but different ID. Could it have to do someting with this issue https://github.com/appwrite/appwrite/issues/7488#issuecomment-1921859704 ?

EDIT -- just remembered, that this second project I had created from the CLI: appwrite init project and then choosing Create new project .

I use the default environment variables from the automatic docker installation (https://appwrite.io/docs/advanced/self-hosting#install-with-docker)

TL;DR
Issue: Error when trying to add web platform to self-hosted Appwrite project, showing `Uncaught (in promise) SyntaxError: Unexpected token '<'`. Possible Solution: The error may be related to a project re-creation with the same name but different ID. It could be similar to the issue reported here: https://github.com/appwrite/appwrite/issues/7488#issuecomment-1921859704. Also, since the second project was created from the CLI using `appwrite init project`, ensure the default environment variables from the automatic Docker installation are correctly set.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more