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
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- [SOLVED] Realtime Missing Channels
```js useEffect(() => { let subscription: RealtimeSubscription; async function loadChips() { try { const {rows: chi...
- Functions executed by events does not ap...
Hello, Running self-hosted Appwrite version 1.9.0 (with console 7.8.26). When functions are triggered by an event (eg. databases.\*tables.\*.rows.\*.create) doe...