sync-request icon indicating copy to clipboard operation
sync-request copied to clipboard

getting read ECONNRESET error when request takes longer time

Open ANANDHAKUMARS opened this issue 6 years ago • 5 comments

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

ANANDHAKUMARS avatar May 14 '19 08:05 ANANDHAKUMARS

+1

jncompany avatar Jun 06 '19 13:06 jncompany

+1

arrowing avatar Jun 02 '20 07:06 arrowing

+1

ddivanshu avatar Dec 09 '20 20:12 ddivanshu

+1

tashidexiaoL avatar Jul 15 '23 18:07 tashidexiaoL