[GENERAL_MSG_CAT_SSL_ERROR]read to host failed:  Connection reset by peer
In my script, I am uploading a pdf. It works while recording but fail when I replay the script.
Error is::: Action.js(2715): Error -27776: [GENERAL_MSG_CAT_SSL_ERROR]read to host failed:  Connection reset by peer. This is probably because the SSL protocol version is not supported. Try switching the TLS/SSL version using "web_set_sockets_option" API.
I tried changing
However, nothing works. How to fix it?
Re: [GENERAL_MSG_CAT_SSL_ERROR]read to host failed:  Connection reset by peer
You can use Wireshark to check if the connection is being made or if it fails at ssl level. Use filter "ssl" and have auto scroll enabled. Pause script before the actual request to upload the pdf file, start Wireshark and continue replay of script.
Check if you have any ssl handshake errors. If you do not see server hello packet that means the ssl version used by the client is not supported by server. If you see application data packets than the pdf is being uploaded, because the error is "connection reset by peer" you need to pay attention to who close the connection, in this case the server will close the connection, check packets with FIN or RST flag set.