Application giving ECONNRESET error when using tunnel

I’m using a Cloudflare tunnel and the application thats using the tunnel is giving an ECONNRESET error. This seems to be due to the connection ending early. How can I fix this?

anyone?