Skip to content

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

@Colton127

Description

@Colton127

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

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

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