【发布时间】:2014-10-22 14:56:12
【问题描述】:
我知道这个话题有很多话题。 但是我找不到任何解决问题的方法。
使用带有“restler”的 Node(0.10.*) 作为 REST 模块。
其余 API 使用 HTTPS
一个 api 服务工作 100%,但另一个工作 1/5 休息调用,我得到 ECONNRESET。我知道错误代表什么。
但是,当我使用 Postman 进行其余呼叫时,他们 100% 工作:/
示例代码:
rest.get(config.endPoint + "/focus/api?method=findsc&cid=" + collectionId + "&fid=" + textId + "&max=" + limit + "&apikey=" + config.apiKey + "&format=json").on('complete', function(data) {
console.log(data);
callback(true, data.data.items);
});
【问题讨论】: