Oops my bad
I was on 1.3.x docs
i was told the redirect url is optional when adding using the server sdk?
but the error is not about that
The URL doesn't really matter because from the server SDK, they don't get an email so no redirect.
Once again, you're using v9.0.0 of the nodejs sdk?
yes
latest
[10:54:40 am] [nuxt] [request error] [unhandled] [500] Param "email" is not optional.
at Client.call (D:\projects\liceulmeu\node_modules\node-appwrite\lib\client.js:172:31)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Teams.createMembership (D:\projects\liceulmeu\node_modules\node-appwrite\lib\services\teams.js:271:16)
at async /D:/projects/liceulmeu/.nuxt/dev/index.mjs:1079:10
at async Object.handler (/D:/projects/liceulmeu/node_modules/h3/dist/index.mjs:1284:19)
at async Server.toNodeHandle (/D:/projects/liceulmeu/node_modules/h3/dist/index.mjs:1359:7)
full stacktrace
https://github.com/appwrite/appwrite/issues/5910 (for reference)
The issue is with the SDK version
v9.0.0 is compatible with Appwrite v1.3.x
do i need to downgrade?
Use v8.1.0 of the node-appwrite package and it should work
thanks
<:appwritepeepo:902865250427215882>
Let us know if there's any issues even after downgrading!
my order of params is correct?
For the v8.1.0 it should be correct
as that's the corresponding sdk for cloud
yup it worked i just had to put a random url in because it complained about that after dowgrading
Alright then, I'll mark this issue as solved 😄
[SOLVED] Can't add a user to a team using Node.js Server SDK
Recommended threads
- Dart Runtime as Function is missing
Hey guys, I set the _APP_FUNCTIONS_RUNTIMES to dart-3.10 and redeployed the appwrite stack but unfortunately the dart runtime doesnt show up. I copied the val...
- Project Inactivity Clarification
I'm on appwrite free plan with my account (om.thakkar@ivcventure.com). Even though throughout the week we use the project atleast once to upload dynamic content...
- Go 1.25 runtime
So I'm trying to use go 1.25 for my functions and I can only find go-1.23 as a function runtime. So I did some searching and found https://github.com/appwrite/a...