Sending in 5 min π
I think it was made optional in 1.4
Here I am, so the code to send it is:
try{
teams.createMembership(
teamId: "teamID",
email: "contacto@dh-sw.net",
roles: [],
url: "https://inicio.dh-sw.net");
} catch(e){
print(e)
}
Sorry for the delay, It took me longer than expected π
Maybe the issue is not specifying roles?
No that should work
What dart SDK you're using?
7.1.0
Try to use ID instead of email Is it working?
trying now
Nope, no luck π’
Tried specifying a role, and no luck
Okay, solved
Can you
- add
awaitthen check thee
await teams.createMembership(
- check the logs?
Ohh
Great
How?
API scopes ππ΅βπ«
π
Sincerely a dumb mistake π
Those are the most common
Yes. I thought I had enabled all scopes. Then double checked and saw it was disabled just for teams API π€¦ββοΈ
I remember when first learning C, the author wrote "everyone will forget to add ;" I though I wouldn't. but I did, many times.
[SOLVED] Cannot add an user to a team through server SDK
Recommended threads
- Can't really use the S3 storage device
hi, I've linked my local MinIO Instance (it's just for testing, not for prod.) to my appwrite instance, when i'm uploading a file it's getting uploaded to the S...
- Next.js SSR Site Times Out on First Visi...
Hey everyone, I'm running a Next.js SSR site on a self-hosted Appwrite server (v1.9.0), and I've noticed a strange behavior that I'm hoping someone can help me...
- Appwrite migration stuck on pending
Migration an existing self hosted 1.9.0 to a new VPS tuning self hosted 1.9.0.. import data recognises the api url, project id and api and then when I create, i...