
Log time ago it worked without any issue when I made a demo app but now it is not working in cloud function. code
TypeScript
?.createMembership(
teamId: inviteCodeDocument.$id,
roles: [e_ROLE_STATUS.REGULAR_USER.name],
userId: pbMessage.dbUserId)
.then((membership) async {
print("Membership :: ${membership.toMap()}");
}).catchError((e) {
print("Error creating memberships: $e");
eStatus = e_STATUS.OPERATION_FAILED;
});```
Error:
```Error creating memberships: AppwriteException: general_argument_invalid, URL is required (400)```
TL;DR
Issue: Developer encountering error "Error creating memberships: AppwriteException: general_argument_invalid, URL is required (400)" when trying to create team membership using USER_ID and TEAM_ID.
Solution: The error is caused by a missing URL parameter in the "createMembership" function. Ensure to specify the URL parameter in the function call to resolve the issue.
I think the main difference is
I am setting up the awClient.setSession(awUserSessionSecret);
Recommended threads
- Limit File Upload count?
Is there a way to limit the number of files a user can upload? I know there's a limit of file size but in my case I'd like to limit the user to only upload x am...
- Function not rebuilding properly
I have a function connected to github. Whenever I push to github it triggers a rebuild as expected, but the new function is not activated after done. Also it ...
- tablesDB scopes are working for newest v...
I am trying to setup local Appwrite instance for testing and managed to pull functions from cloud, now trying to use `appwrite push` to localhost for each of my...
