appwrite / appwrite/sdk-for-dart

🐛 Bug Report:

Open
#110 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Dart
Stars
118
Forks
22
Avg merge
8h 16m
Merged PRs (30d)
3

Description

### 👟 Reproduction steps

_Storage,listFiles_ throws `Error: TypeError: null: type 'Null' is not a subtype of type 'bool'` because the resulting map does not contain _encryption_

- Selfhosted Appwrite v1.8.1
- Dart-Sdk v21.3.0

Image

Image

Image

### 👍 Expected behavior

It should list all files without crashing

### 👎 Actual Behavior

It actually crashes

### 🎲 Appwrite version

Different version (specify in environment)

### 💻 Operating system

Linux

### 🧱 Your Environment

_No response_

### 👀 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?

- [x] I have read the [Code of Conduct](https://github.com/appwrite/appwrite/blob/HEAD/CODE_OF_CONDUCT.md)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing Storage.listFiles with the Dart SDK v21.3.0 against self-hosted Appwrite v1.8.1 and inspect the returned map when encryption is absent. The issue is done when listing files no longer crashes and all files are returned successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.