usualdev
usualdev
CDCloudflare Developers
Created by usualdev on 4/25/2025 in #workers-help
Error when deploying Worker that has binding to EU R2 bucket.
When creating R2 bucket in the EU, and deploying a worker binding to it, I get the error message:
✘ [ERROR] A request to the Cloudflare API (/accounts/{account_id}/workers/scripts/{worker-id}/versions) failed.

binding {bucket_name} of type r2_bucket contains an invalid jurisdiction [code: 10021]

If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose
✘ [ERROR] A request to the Cloudflare API (/accounts/{account_id}/workers/scripts/{worker-id}/versions) failed.

binding {bucket_name} of type r2_bucket contains an invalid jurisdiction [code: 10021]

If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose
jurisdiction: eu I also tried adding the bucket manually in the dashboard, selected jurisdiction as European Union, and got a different error:
A request to the Cloudflare API (/accounts/{account_id}/workers/scripts/{worker-id}/versions) failed.

R2 bucket '{bucket-name}' not found. Please use a different name and try again. [code: 10085]

If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose
A request to the Cloudflare API (/accounts/{account_id}/workers/scripts/{worker-id}/versions) failed.

R2 bucket '{bucket-name}' not found. Please use a different name and try again. [code: 10085]

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