Back

Update to 12.0.4 breaks login.

  • 0
  • Flutter
  • Cloud
Tod
7 Aug, 2024, 21:54

I've updated from 8.3.0 to 12.0.4 and my login is broken with only this message: TypeError: null: type 'Null' is not a subtype of type 'bool'

TL;DR
Developers are facing login issues following an update to 12.0.4 on Appwrite. The error may be due to a null value in a non-nullable field according to the stack trace. Check if MFA attribute is causing the problem. Also, confirm the user and project IDs.
Steven
8 Aug, 2024, 02:41

Are you self hosting or using Appwrite cloud?

Tod
8 Aug, 2024, 13:42

cloud

Steven
8 Aug, 2024, 20:10

Can you provide a stack trace?

Tod
9 Aug, 2024, 21:17

this is the debug error and the stacktrace

Tod
9 Aug, 2024, 21:17

by the type of error I'm assuming there's a null value on a non-nullable field

Tod
9 Aug, 2024, 21:27

it throws when I call await ServidorAppwrite.instance.account.get();

Tod
9 Aug, 2024, 21:31

appwrite's response is sending me a 12 length map, while the User entity has 15 required fields plus 3 nullable ones

Steven
9 Aug, 2024, 22:44

Weird...can you share your project id and the user id?

Steven
9 Aug, 2024, 22:50

So it's probably failing on the mfa attribute

Tod
10 Aug, 2024, 10:35

user id -> "631025be29f0629b2753" project ID -> rapido-coletas

Tod
10 Aug, 2024, 10:35

we didn't have that enabled

Steven
10 Aug, 2024, 15:49

It should still be sent as false

Tod
10 Aug, 2024, 15:53

should I update my server's appwrite?

Steven
10 Aug, 2024, 15:54

Server? What are you talking about? You said you're using Appwrite cloud 👀

Tod
10 Aug, 2024, 15:54

I think we have the framework on a cloud server, running in a container

Tod
10 Aug, 2024, 15:55

didn't build the backend to be honest

Steven
10 Aug, 2024, 15:55

Can you share a screenshot of the appwrite console?

Tod
10 Aug, 2024, 15:59

any command in specific?

Steven
10 Aug, 2024, 15:59

The Appwrite Console. The website to manage your Appwrite projects. You open it in a browser

Steven
10 Aug, 2024, 16:00

What's your Appwrite endpoint?

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