Back

Issue with account.get() – "type 'Null' is not a subtype of type 'bool'"

  • 0
  • Self Hosted
  • Flutter
  • Auth
Fred
29 Jan, 2025, 20:44

Hey everyone,

I'm running a self-hosted Appwrite instance and using the Appwrite Flutter SDK. When calling account.get(), I get the following error: "type 'Null' is not a subtype of type 'bool'" I found this related issue: GitHub Issue #230, but the suggested solution (pinning to version 13.0.0) didn’t work for me.

Has anyone else encountered this? Any ideas on how to fix it?

Thanks in advance! 😊

TL;DR
Issue: When using the Appwrite Flutter SDK and calling account.get(), the error "type 'Null' is not a subtype of type 'bool'" is encountered. The suggested solution of pinning to version 13.0.0 doesn't work. Solution: This issue is being discussed on GitHub [Issue #230](https://github.com/appwrite/sdk-for-flutter/issues/230#issuecomment-2576342039). Development is ongoing to address this bug and provide a fix. Stay updated on the GitHub thread for further solutions.
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