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

v2 just doesn't work #8

Open
craigz opened this issue Jan 22, 2023 · 0 comments
Open

v2 just doesn't work #8

craigz opened this issue Jan 22, 2023 · 0 comments

Comments

@craigz
Copy link

craigz commented Jan 22, 2023

Hi,

So i'm getting up to speed with using b2 buckets and the boto library. After cloning the repo and opening the sample project in my ide, i first read thru the article at Backblaze B2 Quick Start: Using Python With the Backblaze S3 Compatible API and gathered a fairly good understanding of the code. I then tried just running it and encountered a wall of text in errors from python. So i then watched the youtube explainer video. Part 1 at least presents a greatly simplified overview, basically matching what i had gathered in reading the article. However in the video the code executes without issue, successfully making the request and receiving bucket data.

With the understanding that this should work, i created a new python file, called it sample minimal and pulled out just the basic minimal parts that should run and replicate the success that the video had. Another wall of text from python in errors and ending with "ValueError: Invalid endpoint: https://s3.us-west-002.backblazeb2.com".

I then searched the repository for issues, finding only one that didn't match my trouble, then checked branches, and found the v1.0 branch. Surprise, v1.0 works like a charm. After spending now a couple hours familiarizing myself with the project, i was quickly able to read and make sense of the simplified v1.0 version and was successful in running the code, without a mess of python errors or any other issues.

I just wanted to bring this to your attention, basically the v2.0 branch which is what downloads by default when cloning the repo is either broken or requires additional information, while the v1.0 just works. As an intro to working with B2, the successful result would be far more advantageous for new users who may not be as stubborn as i was today.

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

1 participant