Back

NextJS SSR Auth error: AppwriteException: Project with the requested ID could not be found.

  • 0
  • Self Hosted
  • Auth
  • Web
Goran
13 Aug, 2024, 14:59

I have problem with ssr auth on appwrite local instance Version 1.5.7 and nextjs 14., node-appwrite version 13.0.0. I use appwrite example: https://github.com/appwrite/demos-for-react/blob/master/nextjs/server-side-rendering/app/signup/page.tsx and I'm getting project ID error if I log headers Project id is there:

TL;DR
Developers are facing an authentication error with Appwrite on NextJS SSR. They are receiving the error "AppwriteException: Project with the requested ID could not be found." even though the project ID is present in the headers. The setup includes Appwrite local instance Version 1.5.7, NextJS 14, and node-appwrite Version 13.0.0. Solution: Check for potential errors or discrepancies in the project ID handling and ensure it is being passed correctly in the headers.
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