appwrite / sdk-for-dart

[READ-ONLY] Official Appwrite Dart SDK 💙
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
113 stars 17 forks source link

🐛 Bug Report: [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>' #33

Closed sibin-compatio closed 1 year ago

sibin-compatio commented 1 year ago

👟 Reproduction steps

$permissions: map['\$permissions'] modelling does work with appwrite version v:1.0.1.500

👍 Expected behavior

permission should be Map in Collection model

👎 Actual Behavior

"$permissions" is [_InternalLinkedHashMap] but in model is List

🎲 Appwrite version

Version 0.10.x

💻 Operating system

Linux

🧱 Your Environment

No response

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

🏢 Have you read the Code of Conduct?

stnguyen90 commented 1 year ago

@sibin-compatio thanks for raising this issue! 🙏🏼 I think this is a duplicate of https://github.com/appwrite/appwrite/issues/4543. In particular, please take a look at how you're creating the document as mentioned in https://github.com/appwrite/appwrite/issues/4543#issuecomment-1285911644.

Would you be able to 👍🏼 that issue and close this issue?

sibin-compatio commented 1 year ago

@stnguyen90 My bad, Thanks for letting me know this.