Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

Bucket of bricks

I have a tool that lets me use S3 backups, so I tried using R2 in its place. It uploaded almost the full file (streaming, I think) and then failed because of some Etag stuff (I imagine this is just a known incompatibility). That's fine though, the real issue is now my bucket has the almost-complete file, but since it never finished, it doesn't show up in the file listing so I can't delete it. This means I also can't delete the bucket, so I essentially bricked my bucket...

I get a 200 but I always have CORS

I get a 200 but I always have CORS errors on object PUT request

has anyone seen `r2 put ` just hang I m

has anyone seen r2.put() just hang? I'm getting no errors/success or response of any kind, the promise never returns, so my call just hangs there. r2.get() is working fine. The path looks good (an existing object) and the data is a string. Actually, it finally responded with a 504 Gateway timeout. This is with wrangler dev as well as the deployed code. And it wasn't happening a couple days ago, just started last night for me. 🤷‍♂️...

Client disconnect errors

What would cause "Client Disconnect" errors from R2? I am not disconnecting so 🤔
No description

well I could also try that from my

well, I could also try that from my backend (without workers) but my experience (maybe I am just stupid) was that the file is buffered entirely due to the client uploading faster than the r2/s3 connection being build up + posted

What sort of stuff would people want in

What sort of stuff would people want in a “using R2 with Workers” guide/reference? I’m thinking: - Uploading files, both from requests to the Worker and subrequests - FormData vs streaming the body - Retrieving files, including handling httpMetadata and ETags...

~~Well my `CompleteMultipartUpload`

Well my CompleteMultipartUpload currently gets rejected with a MalformedXML error which is a good start Would help if I sent valid XML in the first place. Will see if I can replicate your error now.