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

401 - unauthorized on v0.2.x #36

Open
Fernker opened this issue Apr 10, 2019 · 3 comments
Open

401 - unauthorized on v0.2.x #36

Fernker opened this issue Apr 10, 2019 · 3 comments

Comments

@Fernker
Copy link

Fernker commented Apr 10, 2019

Got some simple code:

b2 = B2(B2_KEY_ID, B2_APP_KEY)
bucket = b2.buckets.get(B2_BUCKET)

That returns a 401 - unauthorized:

This happens in latest version 0.2.1 but if I roll-back to 0.1.10 there is no issue with the same code. Am I missing a change or is there an underlying issue with 0.2.1?

@mdinesh9
Copy link

mdinesh9 commented Jul 9, 2019

I got the same error.

The following code works for me. key_id & application_key are the variables with my auth details from Backblaze.

b2 = B2(key_id=key_id, application_key=application_key)

@justin-pierce
Copy link

This happens to me if the app key is generated for a specific bucket. Is there a different way we're supposed to get bucket in that case?

@WardPearce
Copy link

Hey, might be worth checking out my backblaze b2 wrapper.
I don't believe it has this issue.

https://pypi.org/project/backblaze/
https://backblaze.readthedocs.io/en/latest/index.html
https://github.com/WardPearce/backblaze

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

4 participants