Back

Project with the requested ID could not be found. Please check the value of the X-Appwrite-Project h

  • 0
  • Android
  • Flutter
  • Accounts
Maniac_Fighter
8 Apr, 2023, 08:01

It's recommended to initalise the client object only once and pass it everywhere

TL;DR
The user is experiencing an issue where the requested project ID cannot be found. Another user suggests initializing the client object separately instead of using the class constructor, and provides an example. They also recommend checking for extra spaces and ensuring the correct project ID is used. The user mentions adding the project in the Appwrite console but is still getting an error. Another user suggests registering the client as a new Android platform on the project console dashboard. The user tries changing the project ID but still encounters another error. Solution: - Try initializing the client object separately instead of using the class constructor. - Make sure there are no extra spaces and the correct
Maniac_Fighter
8 Apr, 2023, 08:01

also your project Id is still wrong

gopal
8 Apr, 2023, 08:04

done that also, but still i'm getting the error

gopal
8 Apr, 2023, 08:06
gopal
8 Apr, 2023, 08:07

How can i correct my project id?

Maniac_Fighter
8 Apr, 2023, 08:07

show your client instance

Maniac_Fighter
8 Apr, 2023, 08:08

your projectId ( a lont 32 char text) and you passed "neop" in the previous screenshots

gopal
8 Apr, 2023, 08:08

i tried with both

gopal
8 Apr, 2023, 08:13

@Maniac_Fighter , i've changed "neop" to "32char text project id" but now i'm getting another error

gopal
8 Apr, 2023, 08:13
gopal
8 Apr, 2023, 08:16

it's working, but why i'm getting the error "Invalid Origin. Register your new client (com.example.neop) as a new Android platform on your project console dashboard"

Maniac_Fighter
8 Apr, 2023, 08:17

Have you added the project in the appwrite console?

gopal
8 Apr, 2023, 08:19

i added in appwrite dashboard .

gopal
8 Apr, 2023, 08:20

How can i add project into appwrite console

Maniac_Fighter
8 Apr, 2023, 08:26

they are same

Maniac_Fighter
8 Apr, 2023, 08:27

can you show the appwrite dashboard?

gopal
8 Apr, 2023, 08:35
Maniac_Fighter
8 Apr, 2023, 10:02

and can you see your platform with the id (com.example.neop)

Maniac_Fighter
8 Apr, 2023, 10:02

below?

gopal
8 Apr, 2023, 10:59
gopal
8 Apr, 2023, 11:02
gopal
8 Apr, 2023, 11:04

please help @Maniac_Fighter

Maniac_Fighter
8 Apr, 2023, 15:54

No idea what's the issue here. Maybe look at this ?(https://github.com/appwrite/appwrite/issues/743)

Drake
8 Apr, 2023, 16:34

Make sure there aren't any extra spaces. And make sure this is the right project

safwan
8 Apr, 2023, 18:59

@gopal I noticed you're initializing your client like this:

TypeScript
Client()
  ..setEndpoint('endpoint-here')
  ..setProject('project-id-here')
  ..setSelfSigned(status: true);

Have you tried creating an instance of the client first? I've faced issues at times when using the class constructor by itself to access it's methods. Try this and see if it works:

TypeScript
Client client = Client();
client
  .setEndpoint('endpoint-here')
  .setProject('project-id-here')
  .setSelfSigned(status: true);
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