Back

SvelteKit 500 Error Ideas Tracker

  • 0
  • Auth
  • Web
  • Cloud
nodexninja
28 Oct, 2024, 09:34

I followed the https://appwrite.io/docs/tutorials/sveltekit and deployed my app to cloudflare. Everything works fine in my dev env but not cf pages. I always get 500 internal server error when I first navigate to /join via typing in the URL. This error doesn't occur when I refresh the page or use links to navigate between pages. My repo is here. I also see a 401 message in the console, so I'm assuming this is somehow triggered by the account.get method. Still, I would normally expect a tutorial to not lead to errors like this. This issue seems to occur whenever I import user from $lib/user.ts.

TL;DR
Developers following an online tutorial for a SvelteKit app encountered a 500 internal server error on Cloudflare when navigating to a specific page, suspecting the issue may be related to importing `user` from `$lib/user.ts`. A 401 message is also observed in the console. Refreshing the page or using links to navigate works fine. Check the tutorial instructions and review how `account.get` is being used to resolve the issue.
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