Skip to content
Back

[SOLVED] Project with ID could not be found

  • 0
  • Web
Aditya (HERO)
5 Aug, 2025, 13:36

async getCurrentUser() { try { return await this.account.get(); } catch (error) { console.log("Appwrite serive :: getCurrentUser :: error", error); } return null; }

TL;DR
Developers initially had an issue finding a project with an ID, but the problem was resolved by correctly setting the variables. The issue stemmed from mistyped variables in the code. By ensuring the correct IDs are utilized in the project setup, such as in the appwrite client initialization, the error was resolved.
Kenny
5 Aug, 2025, 13:37

Are you using the project id when setting up the appwrite client

Kenny
5 Aug, 2025, 13:37

and is it the correct id for your project

Aditya (HERO)
5 Aug, 2025, 13:40

Yes I used correct ID but they show an error

Kenny
5 Aug, 2025, 13:40

where are you getting the id from

Kenny
5 Aug, 2025, 13:40

can you show how your appwrite client is being initialized

Aditya (HERO)
5 Aug, 2025, 13:41

constructor() { this.client .setEndpoint(conf.appwriteUrl) .setProject(conf.appwriteProjectID); this.account = new Account(this.client); }

Kenny
5 Aug, 2025, 13:42

where are you setting conf.appwriteProjectID?

Kenny
5 Aug, 2025, 13:42

can you show that and if you have it in your env show your env names

Aditya (HERO)
5 Aug, 2025, 13:42

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;

Kenny
5 Aug, 2025, 13:42

I think you've probably mistyped something somewhere and it's not being included.

Aditya (HERO)
5 Aug, 2025, 13:43

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"

Kenny
5 Aug, 2025, 13:43

Yea, you don't have your variables right

Kenny
5 Aug, 2025, 13:43

VITE_PROJECT_PROJECT_ID != VITE_APPWRITE_PROJECT_ID

Aditya (HERO)
5 Aug, 2025, 13:44

Ohhh Thank a lot

Kenny
5 Aug, 2025, 13:44

[SOLVED] Project ID not found

Kenny
5 Aug, 2025, 13:45

[SOLVED] Project with ID could not be found

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