cloudflare / workers-sdk

⛅️ Home to Wrangler, the CLI for Cloudflare Workers®
https://developers.cloudflare.com/workers/
Apache License 2.0
2.58k stars 665 forks source link

🐛 BUG: Can't bind worker to R2 restricted bucket #4801

Closed dxvid-pts closed 8 months ago

dxvid-pts commented 8 months ago

Which Cloudflare product(s) does this pertain to?

R2, Workers Runtime

What version(s) of the tool(s) are you using?

3.23.0

What version of Node are you using?

20.4.0

What operating system are you using?

MacOS

Describe the Bug

I have two R2 buckets. One "normal" bucket and one with "Jurisdiction | EU" enabled. Everything works as expected on the normal bucket.

When trying to bind a worker to the "Jurisdiction | EU" bucket, wrangler cannot find it.

workers.api.error.bucket_not_found [code: 10085]

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

Also, wrangler r2 bucket list only lists the "normal" bucket

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

No response

dxvid-pts commented 8 months ago

Figured out I have to add jurisdiction = "eu"