javax.net.ssl.SSLException: Connection reset error

Originally posted by Stalsy on January 04, 2021

I’m using ReadyAPI 3.4.5

When I run a GET request that requires no authentication I get:

ERROR: Exception in request: javax.net.ssl.SSLException: Connection reset
ERROR: An error occurred [Connection reset], see error log for details
INFO: Error getting response for [https://racq.uat.cds.cuscal.com.au.Products:Request 1]; javax.net.ssl.SSLException: Connection reset

To test, I downloaded POSTMAN community edition and the same request on the same machine runs fine!

I have looked at previous posts and implemented several suggestions like adding -Dsoapui.https.protocols=SSLv3,TLSv1.2 to the ReadyAPI.vmoptions file but I’m still getting the error.

Also note: the same request to our dev end point https://dev-api2.racq.com.au.wadl/ works but it fails for https://racq.uat.cds.cuscal.com.au.wadl/

Originally posted by richie on January 06, 2021

Hey Stalsy,

First thing i always check if i ever get an SSL Exception is to switch http to https or https to http.

Have you tried altering from secure to nonsecure? Virtually every time ive had this response http vs https has been the fix.

Nice one

Rich

Originally posted by Stalsy on January 10, 2021

Hi Rich,

That was one of the multitude of things I tried. With HTTP I get a time out:

Thu Jan 07 15:49:50 AEST 2021: ERROR: Exception in request: org.apache.http.conn.HttpHostConnectException: Connect to 203.21.202.34:80 [/203.21.202.34] failed: Connection timed out: connect

Thu Jan 07 15:49:50 AEST 2021: ERROR: An error occurred [Connect to 203.21.202.34:80 [/203.21.202.34] failed: Connection timed out: connect], see error log for details

Thu Jan 07 15:49:50 AEST 2021: INFO: Error getting response for [http://racq.uat.cds.cuscal.com.au.Products:Request 1]; org.apache.http.conn.HttpHostConnectException: Connect to 203.21.202.34:80 [/203.21.202.34] failed: Connection timed out: connect

Originally posted by sonya_m on January 20, 2021

Rich, thank you!

Hi Stalsy ! Did you manage to figure this one out? Please share your solution with the Community, if you did!

If the issue persists, contacting support would be the next best step.

Originally posted by Stalsy on January 24, 2021

I’ll contact support

Originally posted by Stalsy on January 24, 2021

While investigating another issue (the Check for updates function was not working -timing out) support asked me to check the ReadyAPI proxy settings. Just setting the proxy ON, made the Check for updates work. So I thought I’d try to run my REST request with the proxy on and it worked! So eventually it was a very simple solution!!!

Originally posted by sonya_m on January 25, 2021

Thank you so much for sharing this with the Community!