-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unhandled cancel Exception #306
Comments
Not bug! Dio will throw a |
@wendux is there any idea to fix it? |
dio.download(url, filePath, cancelToken: _cancelToken, /.../) still throws an exception when using catchError() after cancelling with the token. the workaround seems to be a try/catch using DioError |
@micsan13br both |
what to do if i only want to cancel once ? lets say im donwloading something and user want to manual cancel that donwload, when im calling token.cancel() for the next request auto exception, must keep making diffrent cancel token for each req ? |
if you want to cancel once assign a new cancelToken after the first request has been canceled.
|
404 - Page Not Found |
취소처리될때 에러 반환 하지 않는방법
|
after cancel the request by token, dio has also occurred an unhandled Exception like this
here is my code
when i call
_testDio
frequently, the Exception occurredversion:
The text was updated successfully, but these errors were encountered: