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

5 Replies
Where are these error messages coming from?
I just have a try catch on the
bucket.put(key, value)
and the last part of that is the error.message thrown. Was trying to upload a 5MB file in this case but even happens when I upload a blank file.
Also happens on gets.That means your client is disconnecting from your Worker. I don’t think there’s anything we can help with from our end
I do this in a
waitUntil
so it is definitely still processing especially since all of those operations happen on the same worker invocation and you can only ever have 6 requests going at any given time which means if it did get disconnected it wouldnt have logged out operations past 6. But also if the worker did get disconnected wouldnt it also not log anything since it will just completely stop processing?
The reason I do it in a waitUntil
and why there is so many requests in a single invocation is I am tracking latency of buckets I created in a few different regions.Depending on the request, the Workers runtime will just start breaking promises.
waitUntil
doesn't really play a role here AFAIK.