Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js aws上的nodejs SSL握手错误_Node.js_Amazon Web Services - Fatal编程技术网

Node.js aws上的nodejs SSL握手错误

Node.js aws上的nodejs SSL握手错误,node.js,amazon-web-services,Node.js,Amazon Web Services,我正试图从我的nodejs应用程序中点击第三方api splash支付。 要点击api,我使用的是响应模块 var options = { method: 'post', body: postData, json: true, url: url, headers: { "Content-Type": "application/json", "APIKEY" : config.splash_key } } reques

我正试图从我的nodejs应用程序中点击第三方api splash支付。 要点击api,我使用的是响应模块

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:

请帮助

我自己找到了解决方案,问题是节点版本是9+,所以我降级到6.9。所以问题解决了

您是否在postman中使用api键检查了相同的url。它在工作吗?是的,它在我本地的机器上工作,也在邮递员身上工作。我需要一些AWS配置吗。我不明白该做什么,我不明白你在说什么,看这有一些建议,我想这更像是一个解决办法。请参阅中的讨论