encryptio / git-annex-remote-b2

git-annex special remote for Backblaze's B2
MIT License
39 stars 9 forks source link

Can't create bucket: invalid characters in bucketName #7

Closed NovaRemitly closed 8 years ago

NovaRemitly commented 8 years ago

I tried to use b2 with a bucket name like my-cool-bucket. I got the following error:

git-annex: couldn't create bucket "my-cool-bucket": bad_json: Invalid characters in bucketName: must be alphanumeric or '-'

Problems with this error message:

  1. The bucket already exists (empty), I don't need to create it
  2. It says it must be alphanumeric or '-', which it is.

I tried deleting the bucket and letting git annex create it, but that produced the same error message.

I had some other parameters set that might be affecting this: encryption=pubkey mac=HMACSHA512 and my Backblaze credentials were set in shell environment variables.

Changing the name to MyCoolBucket worked fine.

encryptio commented 8 years ago

So it looks like that bad_json message was coming from B2 itself. Also strange is that the integration tests (which do pass, at least when I test them) successfully use a bucket name with several dashes in them. Also, git-annex-remote-b2 shouldn't try to create a bucket unless the list buckets API were returning invalid data.

Does this still happen? I suspect it was a temporary API bug on Backblaze's part.

encryptio commented 8 years ago

Closing for idleness; if you still see this, please reopen/comment.