Back

Collection with the requested ID could not be found.

  • 0
  • Databases
  • Web
bluesky
26 May, 2023, 09:46
TypeScript
    "message": "Collection with the requested ID could not be found.",
    "code": 404,
    "type": "collection_not_found",
    "version": "1"
}```

I want to use this as server side API with appwrite key
TL;DR
The user is experiencing an issue with a collection not being found in their API request. Possible solutions are to upgrade to version 1.3.4 and run the migrate command. Additionally, they should check if their Appwrite version is up to date. The user is also advised to ensure that the project ID and token are correctly set in Postman. It is suggested to share the exact full URL being used in the request to identify any potential issues.
Christy Jacob
26 May, 2023, 09:56

what endpoint are you trying to request?

Christy Jacob
26 May, 2023, 09:58

can you share the URL you're trying to request?

bluesky
26 May, 2023, 14:51

/v1/databases/{databaseId}/collections/{collectionId}/documents this the url I tryng requrst

Christy Jacob
26 May, 2023, 15:38

Here are the possible scenarios 1/ You are using incorrect IDs for the collection 2/ Your API Key is not being set correctly in postman 3/ Your API key is incorrect

Drake
26 May, 2023, 15:51

Can you provide the exact full URL that is actually in the request?

bluesky
26 May, 2023, 15:52
TypeScript
--header 'X-Appwrite-Project: {{appwriteProject}}' \
--header 'X-Appwrite-Key: {{appwriteToken}}' \
--header 'User-Agent: Apidog/1.0.0 (https://www.apidog.com)' \
--header 'Content-Type: application/json'```
bluesky
26 May, 2023, 15:52

This the curl

Christy Jacob
26 May, 2023, 15:53

is your project ID and token set in postman ?

bluesky
26 May, 2023, 15:53

Yes, I set it in variable

bluesky
26 May, 2023, 15:54

Note this no postmant but apidog

bluesky
26 May, 2023, 15:54
Drake
26 May, 2023, 15:56

Unrelated, but what version of Appwrite do you have? I think your Appwrite might be outdated

Drake
26 May, 2023, 15:57

Would you be able to go to the collection in the Appwrite console and share the URL?

bluesky
26 May, 2023, 15:59

Version 1.3.3

Drake
26 May, 2023, 15:59

ya you should make sure to upgrade to 1.3.4 and run the migrate command

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