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:
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.
Recommended threads
- Introducing new string column types made...
Adding new string types is hugely bennificial! Unfortunately it made the current column types not editable to change their types to the new longer field types.
- there is critical problem in this part
when user update the integer and double both get error not update or upload
- how can i make a relationship between a ...
i want to relate the $id from users auth table in appwrite with other column in my table user_profile. because is the same user... how can i have exactly the s...