我正在尝试从我的Node.js应用程序中调用第三方API Splash Payment。为了调用API,我正在使用response模块。
var options = {
method: 'post',
body: postData,
json: true,
url: url,
headers: {
"Content-Type": "application/json",
"APIKEY" : config.splash_key
}
}
request(options, function (err, res, body) {
if (err) {
console.error('error posting json: ', err);
return cb( err , null);
// throw err;
}
return cb( body.response.errors , body.response.data);
})
但是它给我报错了
Error: write EPROTO 140467444299648:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/s23_clnt.c:772:
请帮忙