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

hyphens in bucket name gives "No such bucket", encoding issue? #266

Closed
henryoswald opened this issue Oct 24, 2016 · 6 comments
Closed

hyphens in bucket name gives "No such bucket", encoding issue? #266

henryoswald opened this issue Oct 24, 2016 · 6 comments
Assignees

Comments

@henryoswald
Copy link

Hi,

I just signed up and created a new bucket but was unable to upload anything to my bucket, "my-bucket-important-backups", I was getting the following error:

ERROR: No such bucket:myl\u2011bucket\u2011important\u2011backups

The error message looked a bit like an an encoding issue so I created a new bucket with no hyphens and it works.

b2 command line tool, version 0.6.8

@ppolewicz
Copy link
Collaborator

Can you type the bucket name manually using the "-" button instead of pasting it? According to b2 documentation:

Bucket names must be a minimum of 6 and a maximum of 50 characters long, and must be globally unique; two different B2 accounts cannot have buckets with the name name. Bucket names can consist of: letters, digits, and "-". Bucket names cannot start with "b2-"; these are reserved for internal Backblaze use.

From what you have reported, a bucket containing a unicode character \u2011 (NON-BREAKING HYPHEN) is being used. Where did you get it from? Did you copy the bucket name from the b2 web interface and paste it in the command line?

@henryoswald
Copy link
Author

Hi,

that did fix it thanks. I copied the bucket name from the web app where I created it.

@ppolewicz
Copy link
Collaborator

@nilayp there is a bug in b2 web app where the user creates a bucket containing hypens and when the bucket name is displayed back to the user, the hypens are replaced with \u2011. Some other way of preventing line-breaking in the bucket name must be used.

Please confirm that this is copied to the internal bug tracker and close this issue.

@bwbeach
Copy link
Contributor

bwbeach commented Oct 30, 2016

I'll follow up on this.

@bwbeach
Copy link
Contributor

bwbeach commented Oct 31, 2016

We're planning on getting this fixed for our weekly deployment on Thursday.

@ppolewicz
Copy link
Collaborator

I am closing this since this is not really a bug in the CLI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants