Skip to content

🐛 Bug Report: Teams API - create/list methods throwing type conversion errors because of null value #163

@jemish54

Description

@jemish54

👟 Reproduction steps

Type Conversion Error because of Cloud beta version does not have property Prefs in Team Model.

  • Create / List methods of Teams API giving:
    null is not a subtype of Map<String,dynamic>.

👍 Expected behavior

It should work with Cloud Beta Appwrite version even if it doesn't contain Preference object inside Team Model.

As Appwrite cloud will be upgraded to version 1.3.x ,This issue will not persist as Preference Object will be added.

Till Then please consider this as it will be a very quick issue to fix.

👎 Actual Behavior

create team is working (As i can see Team getting added on Appwrite Dashboard) but throwing error

List method will always throw Type conversion error because of null value of Preferences.

🎲 Appwrite version

Version 1.0.x

💻 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