Back

Suddenly Authentication stopped working completely

  • 0
  • Auth
  • Web
  • Cloud
pelopida
29 Apr, 2024, 17:01

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"
TL;DR
Developers are experiencing sudden authentication issues with Appwrite. The error messages indicate 'general_bad_request' and 'general_unauthorized_scope'. It seems the code snippets provided do not align with the error messages. Ensure the correct methods are being used like 'await account.createEmailSession(email, password)'. Make sure to utilize the appropriate API calls and versions of "@refinedev/appwrite" and "node-appwrite".
Steven
29 Apr, 2024, 17:02

FYI, it's best to use 3 backticks for multiline code (https://www.markdownguide.org/extended-syntax/#syntax-highlighting).

Steven
29 Apr, 2024, 17:03

what API calls were made that resulted in these errors?

pelopida
29 Apr, 2024, 17:06

we are using the Refine wrappers

pelopida
29 Apr, 2024, 17:08

we are doing this await account.createEmailSession(email, password);

and this

account.createOAuth2Session("google", getBaseURL()); await account.create(uuidv4(), email, password);

Steven
29 Apr, 2024, 17:16
TypeScript
account.createOAuth2Session("google", getBaseURL());
await account.create(uuidv4(), email, password);

It does not make sense to do something like this...

Steven
29 Apr, 2024, 17:16

also the methods you mentioned shouldn't result in:

TypeScript
{
    "message": "User (role: guests) missing scope (account)",
    "code": 401,
    "type": "general_unauthorized_scope",
    "version": "0.13.5"
}
pelopida
29 Apr, 2024, 17:24

To clarify: these are snippets of code that I extracted from our codebase, this is NOT the full code

Steven
29 Apr, 2024, 17:26

What you're sharing doesn't match up so please share the matching code and response

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more