dropbox-sdk-js icon indicating copy to clipboard operation
dropbox-sdk-js copied to clipboard

No error when connection dropped, causing uploads to hang forever.

Open mixo-marcus opened this issue 2 years ago • 2 comments

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 :-)

mixo-marcus avatar Feb 23 '23 19:02 mixo-marcus

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

mixo-marcus avatar Feb 23 '23 19:02 mixo-marcus

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.

greg-db avatar Feb 23 '23 21:02 greg-db