我正在使用 node.js request.js 来访问 api。我收到这个错误
[错误:UNABLE_TO_VERIFY_LEAF_SIGNATURE]
我的所有凭据都是准确有效的,服务器也很好。我向邮递员提出了同样的要求。
request({
    "url": domain+"/api/orders/originator/"+id,
    "method": "GET",
    "headers":{
        "X-API-VERSION": 1,
        "X-API-KEY": key
    },
}, function(err, response, body){
    console.log(err);
    console.log(response);
    console.log(body);
});
这段代码只是在一个可执行脚本中运行。node ./run_file.js,这是为什么呢?它需要在服务器上运行吗?