When updating a user, I always get a scope issue.
I do have the project ID, endpoint, and an API key set corretly.
The API key that is provided does have the account scope enabled.
I'm trying to do this on Astro with SSR, with Appwrite 1.5.
TypeScript
10:11:25 [302] POST /settings/update-username 158ms
AppwriteException [Error]: app.65ec47b12128a7859dfe@service.candy.sudovanilla.com (role: applications) missing scope (account)
at Client.call (/home/korbs/Documents/appwrite demos-for-astro main server-side-rendering/node_modules/node-appwrite/lib/client.js:206:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Account.updateName (/home/korbs/Documents/appwrite demos-for-astro main server-side-rendering/node_modules/node-appwrite/lib/services/account.js:502:16) {
code: 401,
type: 'general_unauthorized_scope',
response: {
message: 'app.65ec47b12128a7859dfe@service.candy.sudovanilla.com (role: applications) missing scope (account)',
code: 401,
type: 'general_unauthorized_scope',
version: '1.5.1'
}
}
TL;DR
Developers are facing a scope issue when updating a user in Astro SSR with Appwrite 1.5. The error message shows that the role 'applications' is missing the 'account' scope. The provided API key does have the 'account' scope enabled.
**Solution:** Ensure that the API key being used has the necessary permissions and scopes, specifically the 'account' scope in this case.Astro SSR: (role: applications) missing scope (account)
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...
- general_bad_request when creating accoun...
I have created a new bug request, could anyone have a look - https://github.com/appwrite/appwrite/issues/11908?
- Cannot use custom SMTP for messaging (SM...
Hey there! I'm on Appwrite Self-hosted 1.9.0. I've never used the messaging feature before, always sent emails through functions or a custom backend, but I'v...