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
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deep Linking & Password reset
I am using react native with expo. I want to implement deep link with the url recived via email. So when clicked the link it opens my app. I havent ever used de...