Im trying to create a new team membership, and is throwing me this error "AppwriteException: Invalid email: Value must be a valid email address".
what im doing wrong? I attached a photo of my code, thanks
Some questions:
- What version of Appwrite are you on?
- Are you using the web or node SDK?
- What version of the SDK are you using?
Appwrite Version 1.3.1
Im using the web sdk with reactjs and the package version is:
"appwrite": "^11.0.0"
The last parameter you're passing in is the email field, but you're passing a username. See https://github.com/appwrite/sdk-for-web/blob/7b37a2bec1dbe47b55e2c962996046f56b763192/src/services/teams.ts#L233
It seems to work, only now I get the smtp error because I don't have it configured.
Is there a way that I can create a new team membership for a user without having to email them and have them accept it?
Like to force the member to join my team without any invitation, example: I create a new team membership for a user and their entry into the team is automatically confirmed, so I don't have to send them an email and do the update to confirm that the user is in the team once they click the email, etc... like just force it to join the team
Use a server SDK and an API key
Im checking the server SDK docs but I can't find a way to not pass the url and manage to enter a user without making him confirm via email, how can i do it?
Pass some url
Im using a function to add the team member.
Im passing all my data needed to the function on a object. But when executing the console throws me this error: "AppwriteException: Invalid data: Value must be a valid string and at least 1 chars and no longer than 8192 chars"
Its like its expecting to be a simple string
And my code looks like this:
How can i make the payload an object or how i can send all my props to the function?
convert the object to a JSON string
it worked
thanks
[SOLVED] Having this error while creating a team membership
Recommended threads
- Upgrade Issue
Am having issue upgrading my appwrite account to pro as my card number is 19 and the required input is 16 digit
- createEmailPasswordSession Error using S...
Did someone succeed using SSR approach for login?
- [Solved] how to get user prefs from serv...
i want to get a specific users preferences from serverside maybe i missunderstood something