sdk-for-flutter icon indicating copy to clipboard operation
sdk-for-flutter copied to clipboard

🐛 Bug Report: Specifying "total" in listFiles throws an exception

Open Colton127 opened this issue 1 month ago • 0 comments

👟 Reproduction steps

Specify a non-null value for "total" in listFiles.

👍 Expected behavior

listFiles should return a FileList object

👎 Actual Behavior

[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: type 'bool' is not a subtype of type 'Iterable<dynamic>'
#0      _Uri._makeQueryFromParametersDefault.<anonymous closure> (dart:core/uri.dart:2769:18)
#1      _LinkedHashMapMixin.forEach (dart:_compact_hash:765:13)
#2      _Uri._makeQueryFromParametersDefault (dart:core/uri.dart:2765:21)
#3      _Uri._makeQueryFromParameters (dart:core-patch/uri_patch.dart:88:12)
#4      _Uri._makeQuery (dart:core/uri.dart:2738:12)
#5      new _Uri (dart:core/uri.dart:1959:13)
#6      ClientMixin.prepareRequest (package:appwrite/src/client_mixin.dart:58:13)
#7      ClientIO.call (package:appwrite/src/client_io.dart:402:32)
#8      Storage.listFiles (package:appwrite/services/storage.dart:26:30)
An exception is thrown "type 'bool' is not a subtype of type 'Iterable<dynamic>'"

🎲 Appwrite version

Version 2.0.x

💻 Operating system

Linux

🧱 Your Environment

N/A

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

  • [x] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Colton127 avatar Nov 18 '25 01:11 Colton127