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

storage is unusable in v0.2.0 #8

Open
dnabil opened this issue Mar 8, 2023 · 1 comment
Open

storage is unusable in v0.2.0 #8

dnabil opened this issue Mar 8, 2023 · 1 comment

Comments

@dnabil
Copy link

dnabil commented Mar 8, 2023

When i use DeleteBucket(), it panics because nil pointer error.
The error is caused by this line https://github.com/nedpals/supabase-go/blob/master/storage.go#L166

It tries to access s.client, but is a nil pointer.
The same with any method that tries to access Storage's client field in storage.go.

PROBLEM:
When initializing the supabase client with CreateClient, the in v.0.2.0 Storage's client is not SET.
(idk if it's the only problem).

FIX:
this commit (almost 5 months ago) already fixes the problem by setting the storage's client field in CreateClient(), but isn't present in the latest version (v0.2.0).

pls release a new version with the fix

@jackmerrill
Copy link
Contributor

I've created a pull request (#25) to fix a few of these issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants