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
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.
- All my apps are not opening now
All my apps are not opening now 200+ apps are not opening plz fast
- My projects were deleted
Hello everyone, My projects were for some reason deleted. I got an email informing me about project inactivity, when I clicked to activate it again, it was sil...