Back

Project not found...

  • 0
  • Web
  • Cloud
ReactingMe
19 Jun, 2024, 17:12

Can anyone help solve this issue - I am trying to setup authentication but got this error

TypeScript
Error 404
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.

Type

project_not_found
```. The issue is that I do have a project created and fully setup with ID as shown below:
`.env`
`APPWRITE_PROJECT_ID="663ff1ba000..."`

`appwrite.js`

import { Client, Account } from 'appwrite';

export const client = new Client();

client .setEndpoint(process.env.NEXT_PUBLIC_APPWRITE_ENDPOINT) .setProject(process.env.APPWRITE_PROJECT_ID);

export { ID } from 'appwrite'; export const account = new Account(client);

TypeScript
also see attached image. Like, I am logged in the Appwrite's console now with the project opened - I don't understand why it's `not found` if it exists. Can you help?
TL;DR
Issue: Developer encountering "Project not found" error while setting up authentication despite having a project created and properly configured. Solution: The error may be due to incorrect configuration of the project ID in the X-Appwrite-Project header. Ensure that the project ID matches the one in the `.env` file. Double-check the endpoint and project ID in the appwrite.js file for accuracy.
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