Skip to content

🐛 Bug Report: When a collection is already created it panics with nil pointer dereference error #26

Open
@Angryman18

Description

👟 Reproduction steps

Error is coming from the CreateCollection method. (Line no 42)
If the collection already exists it panics. if i delete the collection then it creates for the first server run and goes well. next server run fails again as it tries to re-create the collection. suggestions?
Image

Image

👍 Expected behavior

It shouldn't give me this error

👎 Actual Behavior

It should have run fine without any complaint. If the collection is already created it should give error or it should try to create it again but it shouldn't panic.

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Windows

🧱 Your Environment

using the latest github.com/appwrite/sdk-for-go version

👀 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

Assignees

No one assigned

    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