Do you get a specific error from R2 or any more details on how it's not working and you think it's R
Do you get a specific error from R2 or any more details on how it's not working and you think it's R2?

Public access through r2.dev subdomains are rate limited and should only be used for development purposes.Connect a custom domain to your bucket: https://developers.cloudflare.com/r2/buckets/public-buckets/#connect-a-bucket-to-a-custom-domain


wrangler dev --remote which was working yesterday, but today I get an error. I have a bucket for local development that it should be talking towrangler whoami knows who i am

rclone or r2 gave upr2 bucket with rclonerclone copy File.zip r2:/copyto as well but that didn't work✘ [ERROR] Error on remote worker: ParseError: A request to the Cloudflare API (/accounts/61d49c021d802c88abdb553e6f9342dd/workers/scripts/dark-voice-8281/edge-preview) failed.
at throwFetchError
(/Users/interpretations/projects/extraction/dark-voice-8281/node_modules/wrangler/wrangler-dist/cli.js:121307:17)
at fetchResult
(/Users/interpretations/projects/extraction/dark-voice-8281/node_modules/wrangler/wrangler-dist/cli.js:121259:5)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async createPreviewToken
(/Users/interpretations/projects/extraction/dark-voice-8281/node_modules/wrangler/wrangler-dist/cli.js:150628:29)
at async createWorkerPreview
(/Users/interpretations/projects/extraction/dark-voice-8281/node_modules/wrangler/wrangler-dist/cli.js:150649:17)
at async start
(/Users/interpretations/projects/extraction/dark-voice-8281/node_modules/wrangler/wrangler-dist/cli.js:150855:34)
{
text: 'A request to the Cloudflare API
(/accounts/61d49c021d802c88abdb553e6f9342dd/workers/scripts/dark-voice-8281/edge-preview)
failed.',
notes: [ { text: 'workers.api.error.internal_server [code: 10002]' } ],
location: undefined,
kind: 'error',
code: 10002
}wrangler whoamiPUT /pictures/ava/-cbcc-4f98-acaa-81c556b59712_227f8f9c-6da4-4430-8f6b-1c56c869e6e8.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=e45bd1f0b9630ed2055abb90de24%2F20231021%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20231021T025045Z&X-Amz-Expires=300&X-Amz-Signature=7a90fffd87b621c7f5a3fe2d03621beb5275fa8fc4aa3c75235892783aeaff9c&X-Amz-SignedHeaders=host&x-id=PutObject HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Authorization: Bearer jwtxx
Connection: keep-alive
Content-Length: 186746
Content-Type: image/jpeg
DNT: 1
Host: pictures.a88a0a0ec0a380338bfd981ac867c85a.r2.cloudflarestorage.com
Origin: http://localhost:5174
Referer: http://localhost:5174/
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: cross-site
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
sec-ch-ua: "Not=A?Brand";v="99", "Chromium";v="118"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "macOS"[
{
"AllowedOrigins": [
"http://localhost:5174"
],
"AllowedMethods": [
"PUT",
"POST",
"GET",
"DELETE",
"HEAD"
],
"AllowedHeaders": [
"x-requested-by",
"Content-Type"
],
"ExposeHeaders": []
}
]Invoke-WebRequest -Uri "https://xxxxxxxx" -OutFile "C:\Windows\Temp\xxxxxxx.exe"r2r22023/10/21 17:52:57 ERROR : Attempt 1/3 failed with 1 errors and: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.
2023/10/21 17:52:57 ERROR : Attempt 2/3 failed with 1 errors and: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.
2023/10/21 17:52:57 ERROR : Attempt 3/3 failed with 1 errors and: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.
2023/10/21 17:52:57 Failed to copyto: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.[r2]
type = s3
provider = Cloudflare
access_key_id = ***
secret_access_key = ***
region = auto
endpoint = https://***.r2.cloudflarestorage.com/bucket-namerclone copy File.zip r2:/copyto