Skip to content

🐛 Bug Report: Appwrite Flutter SDK TypeError: null: type 'Null' is not a subtype of type 'int' in 17.1.0 #1150

@bitmorty

Description

@bitmorty

👟 Reproduction steps

I just updated my Flutter app to appwrite 17.1.0 and when I startet it a fetching function caused a TypeError: null: type 'Null' is not a subtype of type 'int'.
After some investigation I couldn't not find an issue in my code. The documents it is fetching don't even have int attributes.
I downgraded back to appwrite 17.0.1 and everything works again.

The affected function just calls Appwrite().databases.listDocuments(... and maps the results. But like I said, the objects don't have int attributes.

👍 Expected behavior

It should fetch my documents and map the attributes like in appwrite 17.0.1

👎 Actual Behavior

Error TypeError: null: type 'Null' is not a subtype of type 'int' being thrown.

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

MacOS

🧱 Your Environment

I selfhost Appwrite. Currently using 1.6.2. The Flutter app targets web.

👀 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