Today, without any changes on our part, Appwrite Auth stopped working completely. We cannot Register, nor Login.
Errors:
{
"message": "There was an error processing your request. Please check the inputs and try again.",
"code": 400,
"type": "general_bad_request",
"version": "0.13.5"
}
{
"message": "User (role: guests) missing scope (account)",
"code": 401,
"type": "general_unauthorized_scope",
"version": "0.13.5"
}
Specs:
- "@refinedev/appwrite": "^6.4.6"
- "node-appwrite": "^11.1.1"
FYI, it's best to use 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting).
what API calls were made that resulted in these errors?
we are using the Refine wrappers
we are doing this
await account.createEmailSession(email, password);
and this
account.createOAuth2Session("google", getBaseURL());
await account.create(uuidv4(), email, password);
account.createOAuth2Session("google", getBaseURL());
await account.create(uuidv4(), email, password);
It does not make sense to do something like this...
also the methods you mentioned shouldn't result in:
{
"message": "User (role: guests) missing scope (account)",
"code": 401,
"type": "general_unauthorized_scope",
"version": "0.13.5"
}
To clarify: these are snippets of code that I extracted from our codebase, this is NOT the full code
What you're sharing doesn't match up so please share the matching code and response
Recommended threads
- How to get current user account session ...
i am using sveltekit and i'm a bit unclear on how to get the current user's session from the server side. thisi s what i have so far // src/lib/server/appwrite...
- Current User Is Not Authorized To Perfor...
I keep getting an error saying the current user is not authorized to perform the requested action, when I'm trying to create a row a table. Permissions have bee...
- Realtime: Email Verification Not work
There are some issues with real-time updates. For email verification, updates triggered by the console will be checked, but real-time updates are not triggered ...