Causes : AppwriteException: Invalid email param: Value must be a valid email address
Summary
Title: [SOLVED] Issue with creating team membership
- Developer encountered an issue while creating team membership
- Developer passed `''` as the URL parameter, causing an error
- Documentation states that the URL parameter is required, but it is not a required property
- Developer discovered that passing a valid email address instead of the user ID requires a URL parameter
- Solution: Pass a valid email address and provide a URL parameter for redirection
Kenny
Jan 11, 2024, 16:44
well... is the email you're passing through valid?
vishwa
Rank 2: Process
Jan 11, 2024, 16:45
Yes sir
Kenny
Jan 11, 2024, 16:47
Looks like you might be off a bit, it looks to me, from the documentation, that the 3rd item in the createMembership function should be the email. You have ''
vishwa
Rank 2: Process
Jan 11, 2024, 16:49
Oh let me check
Kenny
Jan 11, 2024, 16:53
Here's the type, so you know what should go where.
Appwrite will send an email or sms with a link to join the team to the invited user, and an account will be created for them if one doesn't exist.
So to me this reads as though the URL is required so it knows where to redirect someone. I see it says it's not a required property but it reads as though it is.