Friday, 15 April 2011

node.js - Node - restler - ECONNRESET -



node.js - Node - restler - ECONNRESET -

i know topic has many threads. cant find solutions problem.

using node(0.10.*) "restler" rest module.

the rest api utilize https

one api service work 100% works 1/5 rest calls , econnreset. know error stand for.

but, when utilize postman rest phone call work 100% :/

exampel code:

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); });

i skipt plugin , used var https = require('https'); instead did have add together create work.

https.globalagent.options.secureprotocol = 'sslv3_method';

node.js rest https

No comments:

Post a Comment