Workers - 413 Request Entity Too Large

Hey, I’m using Workers to replicate data between two Backblaze datacenters.

The worker accepts the sourceURL and the destinationURL, both of which are presigned URLs to the S3 buckets where we can GET objects from and PUT objects to.

Things work fine when I use the web console. But on using an external client (Postman/cURL), I constantly receive the following response:

<head><title>413 Request Entity Too Large</title></head>
<center><h1>413 Request Entity Too Large</h1></center>

Could someone tell me what could be going wrong here? How is using Postman/cURL any different from using the web console?

Thank you for your time!

Depending if you are trying over a hostname (record) which is :orange: or :grey: at Cloudflare DNS dashboard?

Moreover, if it does not go trough Cloudflare (being :grey:), hence you should not receive an error from Cloudflare and if you receive one it is from your server BackBlaze)

If this isn’t a regular thing, you can :grey: that DNS entry, then upload.
And set it back to :orange: when you’re done.

Or the alternative would be to bypass the proxy when uploading. You could bypass Cloudflare by creating a sub-domain which record is :grey:.

Cloudflare limits upload size (HTTP POST request size) per plan type:

If you require larger uploads, either:

  • chunk requests smaller than the upload thresholds, or
  • upload the full resource through a grey-clouded DNS record.