Hi i m trying to create a bucket through

Hi, i'm trying to create a bucket through command line: wrangler r2 create bucket NAME and I'm getting a

⛅️ wrangler 3.1.1
------------------
Creating bucket NAME.

✘ [ERROR] A request to the Cloudflare API (/accounts/ACCOUNT_ID/r2/buckets) failed.

The specified bucket name is not valid. [code: 10005]

If you think this is a bug, please open an issue at:
https://github.com/cloudflare/workers-sdk/issues/new/choose

⛅️ wrangler 3.1.1
------------------
Creating bucket NAME.

✘ [ERROR] A request to the Cloudflare API (/accounts/ACCOUNT_ID/r2/buckets) failed.

The specified bucket name is not valid. [code: 10005]

If you think this is a bug, please open an issue at:
https://github.com/cloudflare/workers-sdk/issues/new/choose
3 Replies
Eusebio Trigo
Eusebio Trigo12mo ago
Piggybacking on this, can we have buckets in local? Like with KV or D1?
Hello, I’m Allie!
I’m guessing the issue may be that it is capitalized? Try using lowercase letters. Also, R2 should work fine in local dev
Eusebio Trigo
Eusebio Trigo12mo ago
Ok, I tried with lowercase and it worked...