相关疑难解决方法(0)

AWS Lambda:错误:getaddrinfo ENOTFOUND

这是AWS Lambda函数中的代码:

var https = require('https');
exports.handler = (event, context, callback) => {
    var params = {
        host: "bittrex.com",
        path: "/api/v1.1/public/getmarketsummaries"
    };
    var req = https.request(params, function(res) {
        var test = res.toString();
        console.log(JSON.parse(test));
        //console.log(JSON.parse(res.toString()));
    });
    req.end();
};
Run Code Online (Sandbox Code Playgroud)

错误:getaddrinfo ENOTFOUND https://bittrex.com https://bittrex.com:443 在errnoException(dns.js:28:10)在GetAddrInfoReqWrap.onlookup [作为未完成](dns.js:76:26)

我无法确定,请帮忙。其他解决方案无效。

javascript https aws-lambda

7
推荐指数
3
解决办法
7268
查看次数

标签 统计

aws-lambda ×1

https ×1

javascript ×1