appwrite / sdk-for-swift

[READ-ONLY] Official Appwrite Swift SDK πŸ¦…πŸŽ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ› Bug Report: Crash with Database Parsing

iMacHumphries opened this issue Β· comments

πŸ‘Ÿ Reproduction steps

I'm tying to use this SDK from a server to create the DB structure. Here's a simple program to repro:

let client = Client()
            .setEndpoint(Constants.endpoint)
            .setProject(Constants.appWriteProjectId)
            .setKey(Constants.appWriteKey)

databases = Databases(client)
let databaseList = try await databases.list()

(Side note: 404 - page not found on the code of conduct link)

πŸ‘ Expected behavior

No crash :)

πŸ‘Ž Actual Behavior

AppwriteModels/Database.swift:53: Fatal error: Unexpectedly found nil while unwrapping an Optional value
Screenshot 2023-12-17 at 10 39 29 PM

🎲 Appwrite version

Different version (specify in environment)

πŸ’» Operating system

Linux

🧱 Your Environment

Running AppWrite with docker on local

docker run -it --rm \
    --volume /var/run/docker.sock:/var/run/docker.sock \
    --volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
    --entrypoint="install" \
    appwrite/appwrite:0.13.3

πŸ‘€ 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?

I had the wrong server version.