dropbox-sdk-js
dropbox-sdk-js copied to clipboard
No error when connection dropped, causing uploads to hang forever.
When uploading a file and the internet drops, an upload can hang for ever.
If we get ECONRESET or ENOTFOUND or ECONNREFUSED or EPIPE errors we can of course handle these and retry.
However sometimes we don't get any of these, and there is nothing returned so we can't handle and try again.
Has anyone experienced this and have a solution?
Thanks :-)
To clarify these are the errors we're handling atm: eMsg.includes('ECONNREFUSED') || eMsg.includes('EPIPE') || eMsg.includes('ENETUNREACH') || eMsg.includes('ENOTFOUND') || eMsg.includes('ETIMEDOUT') || e.status === 408 || e.status === 500
Thanks for the report! Unfortunately I don't have a solution for that, but I'll share this with the team to see if there's something we can do about that sort of scenario.