sync-request
sync-request copied to clipboard
getting read ECONNRESET error when request takes longer time
Its not working even after increasing timeout to unlimited time.
Code: var response = request('POST', url, { headers : {'content-type':'application/xml'}, body: payload, timeout : 200000 });
Note: The request will take 5 minutes to complete. Platform windows
Error: nodeNC failed: events.js:167 throw er; // Unhandled 'error' event ^ Error: read ECONNRESET at TCP.onStreamRead (internal/stream_base_commons.js:111:27) Emitted 'error' event at: at emitErrorNT (internal/streams/destroy.js:82:8) at emitErrorAndCloseNT (internal/streams/destroy.js:50:3) at process._tickCallback (internal/process/next_tick.js:63:19) : success : false
+1
+1
+1
+1