Closed jhpetersen closed 2 weeks ago
Ok, i am closing this issue as it's apparently not really a bug of this library. Turns out cordova-plugin-file is causing this by doing bad bad bad monkey patching
Nevertheless i would suppose to think about my proposal to loosen or extend the error check to status === 0..
Version
17.0.0
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Steps to reproduce the behavior
A clear and concise description of what you expected to happen.
Additional context
Debugging into
handleRefreshRetry()
function reveals thaterror.error instanceof ProgressEvent
evaluates to false (!), althougherror.error.constructor.name === 'ProgressEvent'
evaluates to true. So the restart timer doesn't start and the error gets rethrown.I am using the following config:
Perhaps this could be addressed by modifying
handleRefreshRetry()
function according to Angulars documentation on how to check for network errors? Something like: