Skip to content

🐛 Bug Report: dart_appwrite do not work since 16.0.0 #89

@istornz

Description

@istornz

👟 Reproduction steps

I’m running a self-hosted instance on the latest 1.7.4 version (was before on latest 1.6).

I have a simple Dart function to create a document:

await database.createDocument(
  databaseId: 'DB_ID',
  collectionId:''COLLECTION_ID,
  documentId:'NEW_ID',
  data: {
            'name': 'TEST'
   },
);

Everything works perfectly with dart_appwrite: ^15.0.0.
However, after upgrading my server from 1.6.x to 1.7.4, I also updated to the latest supported dart_appwrite version (16.2.0).

Now I’m getting this error:

type 'Null' is not a subtype of type 'int'

I tried downgrading to 16.1.0 and 16.0.0, but the issue persists.
The only way to make it work again was to roll back to 15.0.0.

I think it's the same issue as the Flutter package:
appwrite/appwrite#10290
appwrite/appwrite#10253

👍 Expected behavior

It should create the document

👎 Actual Behavior

It throw an error for each document creation

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions