Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: Crash with Database Parsing #15

Closed
2 tasks done
iMacHumphries opened this issue Dec 18, 2023 · 1 comment
Closed
2 tasks done

🐛 Bug Report: Crash with Database Parsing #15

iMacHumphries opened this issue Dec 18, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@iMacHumphries
Copy link

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

@iMacHumphries iMacHumphries added the bug Something isn't working label Dec 18, 2023
@iMacHumphries
Copy link
Author

I had the wrong server version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant