[SOLVED] AppwriteException: null, User (role: guest) missing scope (account) (401)
- 0
- Resolved
- Flutter
I/flutter (22412): type 'int' is not a subtype of type 'bool' I/flutter (22412): #0 new Account.fromMap (package:appwrite/src/models/account.dart:63:18) I/flutter (22412): #1 Account.create (package:appwrite/services/account.dart:56:27) I/flutter (22412): <asynchronous suspension> I/flutter (22412): #2 AuthState.Register_User (package:expense_manager/Signin_Signup/Authentication.dart:28:20) I/flutter (22412): <asynchronous suspension>
this is the result that i get
Is your endpoint is the cloud? What version of flutter are you using?
i am using flutter 3.3.7
I mean appwrite package in pubspec.yaml
8.3.0
And against the cloud?
actually i dont know much i had my appwrite in docker and ran it from there
Ohh okay So local Appwrite?
yes
Okay
And what is the content in line 28?
I/flutter (22412): #2 AuthState.Register_User (package:expense_manager/Signin_Signup/Authentication.dart:28:20)
at line 28 in authentication.dart i have final user = await account.create(
Mmm, what version of Appwrite are you using?
Can you run docker ps and share the results?
This is a bit old version of Appwrite
Probably the SDK and the Appwrite don't match each other
So it's better to install the latest version 1.3.4
If you don't have any important information then you can just reinstall Appwrite https://appwrite.io/docs/self-hosting#installWithDocker
ohhkk
If you do have important information then backup every thing then run migration You can see here more details https://discord.com/channels/564160730845151244/1103593309911388200/1103599375244083230
if the problem still persist then can i again ask it tommorow
Appwriters will be here 😉
thankyou so much for helping out
thankyou so much for your help after updating the appwrite to a newer version and downgrading my JDK from 19 to 17 all worked fine but i still dont understand why JDK 19 was having the problems
[SOLVED] AppwriteException: null, User (role: guest) missing scope (account) (401)
Recommended threads
- Error With iOS Apps
I keep getting the below errors for my flutter app. The clients are registered and have been. This wasn't an issue a few hours ago. AppwriteException: AppwriteE...
- Appwrite Auth & Function don't reveal cl...
When I execute a function or sign in with my Flutter app, Appwrite does not show my real IP: instead, it seems that Appwrite shows Fastly CDN IP address.
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...