signupUser function is failing w the error:Error: User (role: guests) missing scope (users.write)
- 0
- Auth
- Functions
- Cloud
Hello! I'm having a persistent issue with an Appwrite Function and would appreciate any help.
What I've Checked :
- Function Settings : Execute Access is set to Guests.
- Environment Variables : APPWRITE_API_KEY, APPWRITE_FUNCTION_ENDPOINT, and APPWRITE_FUNCTION_PROJECT_ID are all set correctly in the function's settings.
- API Key : The key used in the environment variables has the users.write scope.
- Troubleshooting : I have already tried deleting and completely recreating the function, but the error persists.
Important Note : The function works perfectly when I test it locally on my computer (VS Code) with the API key hardcoded. The error only happens on the deployed version.
My Project Info :
- Project ID: 68aaf0dc00014c211992
- Function ID: 68aca96c003aab851446
- Runtime: Node.js-22
Thank you for your help!
Recommended threads
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...