async getCurrentUser() { try { return await this.account.get(); } catch (error) { console.log("Appwrite serive :: getCurrentUser :: error", error); } return null; }
Are you using the project id when setting up the appwrite client
and is it the correct id for your project
Yes I used correct ID but they show an error
where are you getting the id from
can you show how your appwrite client is being initialized
constructor() { this.client .setEndpoint(conf.appwriteUrl) .setProject(conf.appwriteProjectID); this.account = new Account(this.client); }
where are you setting conf.appwriteProjectID?
can you show that and if you have it in your env show your env names
const conf = { appwriteUrl: String(import.meta.env.VITE_APPWRITE_URL), appwriteProjectID: String(import.meta.env.VITE_APPWRITE_PROJECT_ID), appwriteDatabaseID: String(import.meta.env.VITE_APPWRITE_DATABASE_ID), appwriteCollectionID: String(import.meta.env.VITE_APPWRITE_COLLECTION_ID), appwriteBucketID: String(import.meta.env.VITE_APPWRITE_BUCKET_ID) } export default conf;
I think you've probably mistyped something somewhere and it's not being included.
VITE_APPWRITE_URL="https://nyc.cloud.appwrite.io/v1" VITE_PROJECT_PROJECT_ID="688f08de002b9111ec5b" VITE_PROJECT_DATABASE_ID="688f09c4000c886d5ed6" VITE_PROJECT_COLLECTION_ID="688f15ab0026d9ad1b88" VITE_PROJECT_BUCKET_ID="688f1a70002aade68d11"
Yea, you don't have your variables right
VITE_PROJECT_PROJECT_ID != VITE_APPWRITE_PROJECT_ID
Ohhh Thank a lot
[SOLVED] Project ID not found
[SOLVED] Project with ID could not be found
Recommended threads
- Problem with Google Workspace at DNS Rec...
Hello, I bought a domain at Namecheap, and Google Workspace used to work there, but now that I switched from Custom DNS to Appwrite's nameservers, it doesn't w...
- change role of a team member in Appwrite
It's not possible to add/change roles of a team meber in Appwrite Frontend. When you click on a member of a team you get forwarded to the configuration page of ...
- Session not found. Please run appwrite l...
I have encounter an issue with appwrite CLI They asking for a login session but in the doc, it’s mention that only setup client with endpoint / api key is enou...