I'm getting this error: Error signing up: AppwriteException: Project with the requested ID could not be found. Please check the value of the X-Appwrite-Project header to ensure the correct project ID is being used. in my app.
I have tried updating my .env file and Appwrite configuration file but it's not working.
Here's my appwrite configuration file:
TypeScript
import {
Client as ServerClient,
Databases as ServerDatabases,
Storage as ServerStorage,
} from "node-appwrite";
const client = new Client()
.setEndpoint("https://fra.cloud.appwrite.io/v1")
.setProject(process.env.APPWRITE_PROJECT_ID as string);
export const account = new Account(client);
export const databases = new Databases(client);
export const storage = new Storage(client);
export const functions = new Functions(client);
export { OAuthProvider };
const serverClient = new ServerClient()
.setEndpoint("https://fra.cloud.appwrite.io/v1")
.setProject(process.env.APPWRITE_PROJECT_ID as string)
.setKey(process.env.APPWRITE_API_KEY as string);
export const serverDatabases = new ServerDatabases(serverClient);
export const serverStorage = new ServerStorage(serverClient);
Would appreaciate any insights.
TL;DR
Error message: AppwriteException indicates Project ID not found when signing up in the app. Check and update the X-Appwrite-Project header value in the configuration files for Appwrite.
Solution:
- Verify the X-Appwrite-Project header value.
- Check and update the project ID in both the Appwrite configuration file and the .env file as necessary.Recommended threads
- Vulnerabilities !!!
Why i can't mail to security@appwrite.io
- [Solved]
I have github student account. The auth has been paused however the database is working fine. I cant see any option to resume from my console panel. It is just ...
- [Solved] Appwrite project paused
I have github student account. The auth has been paused however the database is working fine. I cant see any option to resume from my console panel. It is just ...