Skip to content
Back

AppwriteException: Project ID not found

  • 0
  • Auth
  • Web
  • Cloud
Chidera Humphrey
21 Jun, 2025, 14:19

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.
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