OK @kian I figured it out after lots of trial and error. Something happened on Cloudflares end that

OK @kian I figured it out after lots of trial and error. Something happened on Cloudflares end that is breaking
POST
requests from the Workers to the Containers on the first try. It causes this error:

Container suddenly disconnected, try again

So, I implemented retry logic for POST requests that waits 1 second and retries the POST request again and again. It usually works within the second or third request.

GET requests work perfectly every time

My POST retry flow works for now - hope this is helpful
Was this page helpful?