Back

AppwriteException: Invalid `databaseId` param: UID must contain at most 36 chars.

  • 0
  • Databases
  • Web
Hashira
13 Feb, 2024, 17:17

AppwriteException: Invalid databaseId param: UID must contain at most 36 chars. Valid chars are a-z, A-Z, 0-9, and underscore. Can't start with a leading underscore I am not getting this error when I'm hosting locally But when I am opening my site deployed via vercel it's showing the error above. I have registered my Vercel hostname on appwritre

TL;DR
Title: Error: Invalid `databaseId` param on Vercel deployment Message: If you're receiving the error "AppwriteException: Invalid `databaseId` param: UID must contain at most 36 chars" on your Vercel deployment, it might be due to not setting the environment variables correctly. Check if you have added the necessary variables in Vercel and deployed after setting them. Additionally, make sure your Vercel hostname is registered on Appwrite. Solution: Set the environment variables correctly in Vercel and make sure to deploy after setting them. Register your Vercel hostname on Appwrite.
Steven
13 Feb, 2024, 17:39

im assuming you used environment variables for the database id...did you set them in vercel? did you deploy after setting them?

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