-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix for changes to b2_authorize_account and b2_list_buckets. #8
Open
clgillis
wants to merge
5
commits into
FiloSottile:master
Choose a base branch
from
clgillis:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b2_authorize_user use AppKeyID and LoginInfo.AccountID for everthing …
B2listpatch
@FiloSottile Any chance you can take a look at this? I can confirm that this fixes the issue for me. |
aviau
added a commit
to aviau/perkeep
that referenced
this pull request
Jan 3, 2021
- Add documentation in storage-examples for using Perkeep with b2 as a storage backend. The documentation uses the new API terminology: AccountID is no longer a thing in the Backblaze web console. - Temporarily replace FiloSottile/b2 by aviau/b2 where I host a copy of clgillis's Pull Request[1]. We can point to the original project again as soon as it is merged. Note that I haven't updated the vendor directory and it seems that `go mod vendor` updates way more things that are also outdated in the master branch, so I will leave that as an exercise to whoever has commit access :). Before this Pull Request, launching the b2 storage would error with the following error message: ``` Error parsing config: Caught panic: error instantiating storage for prefix "/sto-b2/", type "b2": Post "https://api000.backblazeb2.com/b2api/v1/b2_list_buckets": b2 remote error [bad_request]: accountId invalid ``` Now, it seems to work as expected! 1. FiloSottile/b2#8
aviau
added a commit
to aviau/perkeep
that referenced
this pull request
Jan 3, 2021
- Add documentation in storage-examples for using Perkeep with b2 as a storage backend. The documentation uses the new API terminology: AccountID is no longer a thing in the Backblaze web console. - Temporarily replace FiloSottile/b2 by aviau/b2 where I host a copy of clgillis's Pull Request[1]. We can point to the original project again as soon as it is merged. Note that I haven't updated the vendor directory and it seems that `go mod vendor` updates way more things that are also outdated in the master branch, so I will leave that as an exercise to whoever has commit access :). Before this Pull Request, launching the b2 storage would error with the following error message: ``` Error parsing config: Caught panic: error instantiating storage for prefix "/sto-b2/", type "b2": Post "https://api000.backblazeb2.com/b2api/v1/b2_list_buckets": b2 remote error [bad_request]: accountId invalid ``` Now, it seems to work as expected! 1. FiloSottile/b2#8
aviau
added a commit
to aviau/perkeep
that referenced
this pull request
Jan 14, 2021
- Add documentation in storage-examples for using Perkeep with b2 as a storage backend. The documentation uses the new API terminology: AccountID is no longer a thing in the Backblaze web console. - Replace FiloSottile/b2 by perkeep/b2 where we host a copy of clgillis's Pull Request[1]. We can point to the original project again as soon as it is merged. Note that I haven't updated the vendor directory and it seems that `go mod vendor` updates way more things that are also outdated in the master branch, so I will leave that as an exercise to whoever has commit access :). Before this Pull Request, launching the b2 storage would error with the following error message: ``` Error parsing config: Caught panic: error instantiating storage for prefix "/sto-b2/", type "b2": Post "https://api000.backblazeb2.com/b2api/v1/b2_list_buckets": b2 remote error [bad_request]: accountId invalid ``` Now, it seems to work as expected! 1. FiloSottile/b2#8
aviau
added a commit
to aviau/perkeep
that referenced
this pull request
Jan 14, 2021
- Add documentation in storage-examples for using Perkeep with b2 as a storage backend. The documentation uses the new API terminology: AccountID is no longer a thing in the Backblaze web console. - Replace FiloSottile/b2 by perkeep/b2 where we host a copy of clgillis's Pull Request[1]. We can point to the original project again as soon as it is merged. Note that I haven't updated the vendor directory and it seems that `go mod vendor` updates way more things that are also outdated in the master branch, so I will leave that as an exercise to whoever has commit access :). Before this Pull Request, launching the b2 storage would error with the following error message: ``` Error parsing config: Caught panic: error instantiating storage for prefix "/sto-b2/", type "b2": Post "https://api000.backblazeb2.com/b2api/v1/b2_list_buckets": b2 remote error [bad_request]: accountId invalid ``` Now, it seems to work as expected! 1. FiloSottile/b2#8
aviau
added a commit
to aviau/perkeep
that referenced
this pull request
Jan 14, 2021
- Add documentation in storage-examples for using Perkeep with b2 as a storage backend. The documentation uses the new API terminology: AccountID is no longer a thing in the Backblaze web console. - Replace FiloSottile/b2 by perkeep/b2 where we host a copy of clgillis's Pull Request[1]. We can point to the original project again as soon as it is merged. Note that I haven't updated the vendor directory and it seems that `go mod vendor` updates way more things that are also outdated in the master branch, so I will leave that as an exercise to whoever has commit access :). Before this Pull Request, launching the b2 storage would error with the following error message: ``` Error parsing config: Caught panic: error instantiating storage for prefix "/sto-b2/", type "b2": Post "https://api000.backblazeb2.com/b2api/v1/b2_list_buckets": b2 remote error [bad_request]: accountId invalid ``` Now, it seems to work as expected! 1. FiloSottile/b2#8
aviau
added a commit
to perkeep/perkeep
that referenced
this pull request
Jan 14, 2021
- Add documentation in storage-examples for using Perkeep with b2 as a storage backend. The documentation uses the new API terminology: AccountID is no longer a thing in the Backblaze web console. - Replace FiloSottile/b2 by perkeep/b2 where we host a copy of clgillis's Pull Request[1]. We can point to the original project again as soon as it is merged. Note that I haven't updated the vendor directory and it seems that `go mod vendor` updates way more things that are also outdated in the master branch, so I will leave that as an exercise to whoever has commit access :). Before this Pull Request, launching the b2 storage would error with the following error message: ``` Error parsing config: Caught panic: error instantiating storage for prefix "/sto-b2/", type "b2": Post "https://api000.backblazeb2.com/b2api/v1/b2_list_buckets": b2 remote error [bad_request]: accountId invalid ``` Now, it seems to work as expected! 1. FiloSottile/b2#8
aviau
added a commit
to perkeep/perkeep
that referenced
this pull request
Jan 17, 2021
- Add documentation in storage-examples for using Perkeep with b2 as a storage backend. The documentation uses the new API terminology: AccountID is no longer a thing in the Backblaze web console. - Replace FiloSottile/b2 by perkeep/b2 where we host a copy of clgillis's Pull Request[1]. We can point to the original project again as soon as it is merged. Note that I haven't updated the vendor directory and it seems that `go mod vendor` updates way more things that are also outdated in the master branch, so I will leave that as an exercise to whoever has commit access :). Before this Pull Request, launching the b2 storage would error with the following error message: ``` Error parsing config: Caught panic: error instantiating storage for prefix "/sto-b2/", type "b2": Post "https://api000.backblazeb2.com/b2api/v1/b2_list_buckets": b2 remote error [bad_request]: accountId invalid ``` Now, it seems to work as expected! 1. FiloSottile/b2#8
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Due to changes to Backblazes api, you need to use the Application Key ID to authorize an account but still use the AccountID to list buckets. Also, you have to specific the name of the bucket if the authorization key restricts access to one bucket or you will get "unauthorized" returned.
This PR fixes these issues.