-
-
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
Unable to catch DioError #655
Comments
Same here, can't catch with |
It looks like the issue is due to Flutter framework. Many exceptions of several packages are not caught when running the app in DEBUG Mode. However, I noticed that when you run your application in RELEASE Mode, everything seems to work fine (though mostly, & I don't think every time). Waiting for the dio team to share their opinion on it @ffpetrovic |
Does latest flutter have this issue? @psgainz |
Unfortunately yes! |
Thanks @psgainz |
I accidentally encountered it while testing in RELEASE Mode. Also, in some stackoverflow post, I read that this issue also persists for google_sign_in package. Exceptions are not caught when thrown by the package. Only in RELEASE Mode, some exceptions are caught, while some exceptions simply do not occur. |
Yes, I have had this problem with google sign in and also read that release mode fixes it. |
Hello everybody! I have a same problem without any "google signin flow", i am just trying to make http request. |
Closing the issue as the exception works correctly in RELEASE Mode |
Debugging in RELEASE mode is very limited. This is not a valid excuse. |
a workaround is disable all breakpoints in run tab sidebar, the error will be catched and the app will flow |
@talski's workaround is not optimal, as we want to catch all uncaught error if possible to prevent accidental crashes. Any plans at all to fix this? |
i am handle in this way on debug mode I know its not good practice |
There are some exceptions that you are not caught. |
Now the error with the google signIn flow is already fixed in the dart sdk, I'll try to upgrade to latest dart a downloaded version of the dio package, but now leaks other exception types (but I didn't try the snippet of this issue). By the way, this issue should not be closed. Google Sign Flow issue: flutter/flutter#45146 |
Any updates? This stil occurs. |
Can confirm. Just encountered it with this code:
|
hey? the issue still occurs |
New Issue Checklist
Issue Info
Issue Description and Steps
Code Snippet
In dispatchRequest, exception being thrown here
However it is not caught by the above code snippet
The text was updated successfully, but these errors were encountered: