You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upload failed!
socket hang up
Error: socket hang up
at createHangUpError (_http_client.js:302:15)
at TLSSocket.socketOnEnd (_http_client.js:394:23)
at emitNone (events.js:91:20)
at TLSSocket.emit (events.js:186:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
The text was updated successfully, but these errors were encountered:
I haven't been able to reproduce the socket hang up error. However when running the tool on a repository with a large number of files, ZendeskClientWrapper will often need to retry uploads because it gets a 500 error from Zendesk.
The 500 errors seem to happen most often on the resource uploading step, when many connections are staying open at once. So I think it happens because of a limit by Zendesk's servers regarding the number of simultaneous connections. After some testing, I found that 500 errors seem to happen when more than 30 connections are made at once.
So I propose two things for this issue:
Implement request throttling so that no more than 30 connections are made at once.
Implement incremental "Retry After" times - each retry should wait an incrementally longer amount of time before retrying again:
Need to investigate what causes this error:
The text was updated successfully, but these errors were encountered: