Back

AppwriteException: Missing required parameter: "collectionId"

  • 0
  • Databases
  • Web
fedros_
20 Aug, 2024, 21:17

On my development local host everything works as expected but when I deploy onto the web (using vercel) every appwrite api crashes and I get the above error. I am using react /next.js

Anyone who has experienced a similar problem or knows how to solve it?

TL;DR
Issue: AppwriteException occurring with error message "Missing required parameter: 'collectionId'." Solution: The error might be related to missing platform creation in the Vercel console for the new domain. Ensure you have added a platform for the Vercel domain. Development works on localhost but crashes on deployment, specifically with React/Next.js. Any developers with similar experiences or solutions?
Kenny
20 Aug, 2024, 21:30

Have you created a platform in the console for the new vercel domain?

Kenny
20 Aug, 2024, 21:31

You can either do a wildcard like *.vercel.app or a concise one like myapp.vercel.app. You can add a platform in the console by going into your project, and clicking Add Platform.

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