Hello, I'm trying to send large content from workers and I'm getting a network connection lost error when attempting to send anything above roughly 100Mb.
I don't appear to be getting any requests on the receiving end, so I am thinking my worker isn't even attempting to send the request at all.
Is there some limit I'm hitting on outbound request size from a worker?
Here's some example code:
export default {
async fetch(request, env, ctx) {
const object = await env.R2_BUCKET.get('bigfile.txt');
const putResponse = await fetch('http://webhook.site/............', {
method: 'PUT',
body: object.body,
//body: "Hello World",
headers: {
'Content-Length': object.size.toString(),
'Content-Type': 'application/octet-stream',
},
});
return new Response(``, { status: 200 });
}
}