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
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...
- Realtime with multiple connections
I need the Realtime on multiple Collections for diffrent applicational logic. So my question is: Is there a way to have only 1 Websocket connection or do I need...