Rank 3: Container
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
Votes
0
Replies
16
Participants
Unknown
Messages
17
Rank 3: Container
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
Rank 3: Container
Admin
Some questions:
Rank 3: Container
Appwrite Version 1.3.1
Im using the web sdk with reactjs and the package version is:
"appwrite": "^11.0.0"
Admin
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
Rank 3: Container
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
Admin
Use a server SDK and an API key
Rank 3: Container
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?
Admin
Pass some url
Rank 3: Container
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
Rank 3: Container
Rank 3: Container
And my code looks like this:
Rank 3: Container
How can i make the payload an object or how i can send all my props to the function?
Admin
convert the object to a JSON string
Rank 3: Container
it worked
Rank 3: Container
thanks
Admin
[SOLVED] Having this error while creating a team membership