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 example not working #53

Open
mloubout opened this issue Dec 13, 2022 · 2 comments
Open

Storage example not working #53

mloubout opened this issue Dec 13, 2022 · 2 comments

Comments

@mloubout
Copy link

mloubout commented Dec 13, 2022

The documentation's example for storage does not work and uses undefined Types.

  • GoogleCredentials doesn't exist it should be JSONCredentials

Changing it so it runs, and following every steps of the tutorials I still get a 403 Forbiden when running storage(:Bucketm, :list), is there something wrong with the setup described in the tutorial or am I doing something wrong?

julia> creds = JSONCredentials(expanduser("~/.gcp/credentials.json"))
project_id: polar-scarab-371513
client_email: xxxx

julia> session = GoogleSession(creds, ["cloud-platform"])
scopes: ["https://www.googleapis.com/auth/cloud-platform"]
authorization: Dict{Symbol, Any}()
expiry: 0001-01-01T00:00:00


julia> set_session!(storage, session)

julia> bkts = storage(:Bucket, :list)
get a HTTP request error: HTTP.Exceptions.StatusError(403, "GET", "/storage/v1/b?project=polar-scarab-371513", HTTP.Messages.Response:
"""
HTTP/1.1 403 Forbidden
@mattBrzezinski
Copy link
Member

Hi Mathias,

This package is not really maintained by anyone, just as a heads up you unfortunately probably won't be getting a response. 😢

@nlw0
Copy link
Collaborator

nlw0 commented Jul 19, 2023

I've just tried these steps and it "works for me", with JSONCredentials as pointed out. The problem with the documentation only seems to be that the latest version has not been deployed... I must figure out how to deal with the bots. If you could try again with the latest code, @mloubout, maybe we can track down any remaining 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

3 participants