When creating a membership with appwrite teams API, it returns an error as in the screenshot provided. I earlier tried with this it worked on local host. But it doesn't on vercel. Even after updating my redirect url to the vercel endpoint thing doesn't work. How can I solve this error. Attached are screenshots of my error and function. What is the purpose of the callback url anyway if it when I put my vercel endpoint it just throws an error.
You need to add your Vercel domain to Platforms in your Appwrite project
It has *.vercel.app and to my understanding the asterisks means all
So I don't understand why it would fail
Should I specify it explicitly
?
My understanding is that CORS doesn’t support subdomain wildcards
It says that the host name should have a valid path and port. I don't know how to get those
It says that the host name should have a valid path and port. I don't know how to get those
It returns this error Customer Membership 2: AppwriteException [Error]: Invalid url: URL host must be one of: localhost, aw.ablestate.cloud, *.vercel.app at Client.call (/Users/davie/Documents/workspace/autofore/backend/node_modules/node-appwrite/lib/client.js:174:31) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Teams.createMembership (/Users/davie/Documents/workspace/autofore/backend/node_modules/node-appwrite/lib/services/teams.js:271:16) at async createUser (/Users/davie/Documents/workspace/autofore/backend/src/handlers/createUser.js:25:36) { code: 400, type: 'general_argument_invalid', response: { message: 'Invalid url: URL host must be one of: localhost, aw.ablestate.cloud, *.vercel.app', code: 400, type: 'general_argument_invalid', version: '1.3.7' } }
The redirect path has to be one of the platforms you’ve added.
Thanks. I think doing away with the wild card solved it
Recommended threads
- type generation on same columns in table
is there way to prevent this ? or only need to update column name like table prefix?
- Unable to send verification email
Hi! I’m trying to access my project on Appwrite Cloud (fra.cloud.appwrite.io), but I keep getting this popup saying: “To continue using Appwrite Cloud, please...
- Custom Topic sent from Function (with sc...
Can I send a message on a custom topic? So clients can subscribe to them?