Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks done
jemish54 opened this issue Jul 16, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@jemish54
Copy link

👟 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?

@jemish54 jemish54 added the bug Something isn't working label Jul 16, 2023
@jemish54 jemish54 changed the title 🐛 Bug Report: 🐛 Bug Report: Teams API - create/list methods throwing type conversion errors because of null value Jul 16, 2023
@lohanidamodar
Copy link
Member

For Appwrite cloud please use Flutter Appwrite SDK version 8.x.x not 9.x.x and that should solve your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants