502 connection reset by peer

We’re seeing (seemingly random) errors on a POST request from Java to an endpoint behind Cloudflare proxy.

Interesting enough: it doesn’t always happen. Sometimes the request goes through.

If we disable CF proxy, everything works OK all the time.

org.springframework.web.client.ResourceAccessException: I/O error on POST request for “https://URL/o/token/”: Connection reset; nested exception is javax.net.ssl.SSLException: Connection reset

Could you check which SSL protocol / version is your host/origin server using and supported, and also which one your Java client?, and which one is setup at Cloudflare?

  • minimum TLS v1.1, TLS v.1.2 … etc.

Moreover, may I also ask does your Java client support SNI extenstion for HTTPS connections (SSL certificate)?

This topic was automatically closed after 30 days. New replies are no longer allowed.