node-xmlrpc
node-xmlrpc copied to clipboard
EPROTO error for createSecureClient
I am connecting the xmlrpc service using xmlrpc module and getting EPROTO error in response. i feel the error is related to socket . i am confused and not getting any solution.my xmlrpc service support only TLSv1.0 protocol and not others.But getting protocol error.please give the suggestion.
Actually our xmlrpc server port is 8085 (https). getting EPROTO error. Expecting solution.
I am getting same error. The server to which I connect also expects me to use TLS 1.2. Did you have a solution for this?
@mahios2015 You can try if below solution works: const xmlclient = xmlrpc.createSecureClient({ url: "Your URL", secureProtocol: "TLSv1_2_method" });
The options passed to xmlrpc are passed as it is to the https transport module. So all options which work with node's https module could be used.
Node's minimum TLS version is now 1.2,
https://nodejs.org/api/tls.html#tls_tls_default_min_version
if you are using less than that, you should set
secureProtocol: "TLS_method"