Back

[SOLVED] User (role: guests) missing scope (account)

  • 0
  • Users
  • Accounts
  • Android
asapsonter
25 Apr, 2023, 02:06

I get the error below when I try to register a new user. io.appwrite.exceptions.AppwriteException: User (role: guests) missing scope (account)

TL;DR
The user is encountering an error when trying to register a new user. The error message says that the user is missing the scope "account". The user has figured out the cause, which is a mistake in calling a function with the wrong scope. The user suggests double-checking the API call being made. The problem was solved by ensuring that the correct API call is made.
Drake
25 Apr, 2023, 02:07

This shouldn't return for registering a new user (account.create()). Double check what API call is throwing this. Perhaps you're calling account.get() without creating a session first

asapsonter
25 Apr, 2023, 02:19

Ok. I figured the cause, I called a function that has account.createVerification in the scope as account.create()

asapsonter
25 Apr, 2023, 02:19

Thanks

Drake
25 Apr, 2023, 02:20

[SOLVED] User (role: guests) missing scope (account)

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