Skip to content
Back

DartError: TypeError: null: type 'Null' is not a subtype of type 'bool'

  • 0
  • Self Hosted
Sabiyo
17 Jan, 2025, 07:05

Get error in self hosted app while trying Account account = Account(client);

TypeScript
  User result = await account.create(
    userId: ID.unique(),
    email: email,
    password: password,
    name: "demo", // Optional
  );

the came code is working on cloud

TL;DR
Developers experiencing DartError "TypeError: null: type 'Null' is not a subtype of type 'bool'" when using a self-hosted app may be encountering issues with data types. In this case, check if the client information is properly handled and returned. Double-check the data types being passed to the Account constructor and its related methods. Ensuring that the data passed matches the expected types should resolve this error.
Sabiyo
17 Jan, 2025, 07:06

pleasae help

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