Back

[SOLVED] account.create throws error

  • 0
  • Self Hosted
  • Flutter
Alan Gautham
19 Sep, 2023, 16:37

E/flutter (22465): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Null' is not a subtype of type 'List<dynamic>' E/flutter (22465): #0 new User.fromMap (package:appwrite/src/models/user.dart:87:18) E/flutter (22465): #1 Account.create (package:appwrite/services/account.dart:55:24) E/flutter (22465): <asynchronous suspension>

What could be the possible cause for this error...?

TL;DR
The user encountered an error when using the account.create function in the Appwrite SDK. The error message is "type 'Null' is not a subtype of type 'List<dynamic>'". The user downgraded to version 9.0.0 of the SDK and the error was resolved.
D5
19 Sep, 2023, 17:05

Could you share the code used for this?

Drake
19 Sep, 2023, 20:04

Also, what version of Appwrite and what version of the flutter SDK

Alan Gautham
19 Sep, 2023, 21:41

environment: sdk: '>=3.1.0 <4.0.0'

Alan Gautham
19 Sep, 2023, 21:41

appwrite: ^11.0.0

Alan Gautham
19 Sep, 2023, 21:42

Appwrite: Version 1.3.8

Alan Gautham
19 Sep, 2023, 21:42

on Digital Ocean

Alan Gautham
19 Sep, 2023, 21:44

Hi guys... coming from firebase using appwrite for first time.... trying to setup email authentication..... just using code from appwrite demo todo app....

Drake
19 Sep, 2023, 21:54

That version of the SDK is meant for Appwrite 1.4. Please downgrade and look at the readme to see what version of Appwrite the SDK is for

Alan Gautham
19 Sep, 2023, 22:01

Thank you Steven..... that makes sense.... will downgrade and chk

Alan Gautham
19 Sep, 2023, 22:05

Dowgraded to version 9.0.0 its working now without errors😊 Thamks a lot

Drake
19 Sep, 2023, 22:12

[SOLVED] account.create throws error

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