#AppwriteException: Invalid email: Value must be a valid email address

11 messages · Page 1 of 1 (latest)

gusty silo
#

Trying to user teams.createMembership (appwrite.js),
I am trying to send an invite to my gmail but it is failing stating the email is invalid

AppwriteException: Invalid email: Value must be a valid email address

[Error] Method: POST
[Error] URL: /v1/teams/:teamId/memberships
[Error] Type: Utopia\Exception
[Error] Message: Invalid email: Value must be a valid email address
[Error] File: /usr/src/code/vendor/utopia-php/framework/src/App.php
[Error] Line: 742```

My Code:
```.teams.createMembership('client', '[email protected]', roles, `${Server.baseURL}/invite/${companyId}?tkn=${authToken}`)```

the email is 100% a valid email, any insight on this?
hushed cedar
gusty silo
gusty silo
gusty silo
#

@hushed cedar new issue,
It is telling me the team id does not exist:

AppwriteException: Team with the requested ID could not be found.

POST https://[REDACTED]/v1/teams/client/memberships 404

hushed cedar
gusty silo
#

Okay, I am in the team now, how to i give myself permissions to send invitations?

hushed cedar