Back

missing required parameter: collectionID

  • 1
  • Databases
jasonetorres (class 23)
10 Nov, 2023, 12:40
TypeScript
    at Databases.<anonymous> (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=dacaa303:2148:15)
    at Generator.next (<anonymous>)
    at http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=dacaa303:503:67
    at new Promise (<anonymous>)
    at __awaiter (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=dacaa303:485:10)
    at Databases.listDocuments (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=dacaa303:2143:12)
    at getCurrentUser (http://localhost:5173/src/lib/appwrite/api.ts:61:41)
    at async checkAuthUser (http://localhost:5173/src/context/AuthContext.tsx:51:30)
api.ts:160 AppwriteException: Missing required parameter: "collectionId"
    at Databases.<anonymous> (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=dacaa303:2183:15)
    at Generator.next (<anonymous>)
    at http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=dacaa303:503:67
    at new Promise (<anonymous>)
    at __awaiter (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=dacaa303:485:10)
    at Databases.createDocument (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=dacaa303:2178:12)
    at createPost (http://localhost:5173/src/lib/appwrite/api.ts:93:37)```


occurs when I try to user upload content
TL;DR
The user is experiencing an error message that says "Missing required parameter: collectionId" when trying to upload content. They are using relationships in their code. They are asked for a specific code snippet to troubleshoot further. A solution was not provided in the support thread.
Drake
10 Nov, 2023, 19:22

What's your code and are you working with relationships?

jasonetorres (class 23)
12 Nov, 2023, 11:06

yes I am working with relationships! what code snippet would you need specifically?

Drake
12 Nov, 2023, 15:55

The code snippet that triggered this and info about what data was passed in

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