{ [Error: socket hang up] code: 'ECONNRESET' } what is this?
I use this module to call a server, but response takes so much time so I got { [Error: socket hang up] code: 'ECONNRESET' } this error . so what it is? How to solve it?
HI Im also getting above Error any one has solution so far??
Can you please show some code to be able to reproduce this?
Same issue.
return async(function () { var body = await(Request.post(BASEURI + '/auth/fbLogin', { "facebookID":543717755820652, "birthday": "2000-11-14", "registerType": 1, "username": "JCharles", "email": "[email protected]", "gender": "Male" })); cl('\n'); cl(body); })();
(where cl() is an alias for console.log)
post: function (path, data) { return new Promise(function (resolve, reject) { var options = {method: "POST", body: data, dataType: 'json'} requestify.request(path, options).then(function (response) { var body = response.getBody(); resolve(body); }).catch(function (e) { cl('\n'); cl("POST", e); reject(e); }); }); },
Anyone figured this out?
@jmorrisIII Honestly, I didn't stuggle much with that and switched with the Request npm package.
@Alex-Werner thanks for your response. I switched to Superagent and solved the problem.