-
-
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
there are too many DioErrorType.connectTimeout reported in sentry #1230
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, please make sure it is up to date and if so, add a comment that this is still an issue to keep it open. Thank you for your contributions. |
Any update? |
I have the same error. |
You can set which errors to ignore during initialization. https://docs.sentry.io/platforms/flutter/configuration/filtering/ |
I've been noticing a similar connect timeout when using the http2 adapter. I can always reproduce the issue using a test client and server - the steps require the ability to enable/disable a URL endpoint from accepting connections. I don't know if it's 100% related but certainly whilst I've been developing client and api locally and whenever I stopped my server hosting my api and the client makes a call, all new connections fail with the connect timeout.
NOTE: I don't see this issue when I don't configure the http2 adapter on the Dio instance. It's only with http2 adapter. I've modified a local version of the http2 adapter to get it to work, specifically the The "fix" for me was to add a try/catch block around the await of the future so it can be removed from the
This doesn't appear to affect the ability of the adapter to reuse connections that occur frequently after each other, when they connect of course ;-) So I say, if you are using the http2_adapter you may want to consider this might be the issue. |
I'm also getting this issue. I have a service running periodically every 3 minutes. Crashlytics shows that in production hundreds of users are getting connectTimeout from Dio. @wendux Any update please? |
Is everyone here using the http2 adapter? |
any update? getting too much errors |
@namdp Can you answer my previous question? |
@kuhnroyal. No, i'm not using http2 adapter |
Thanks, unfortunately I don't see what can be done here. |
The bug is happening in my project as well. Did anybody find a solution except retrying? I'm not using the http2 adapter btw. |
If you are using a Localserver: You Should every time when you restart your pc changing the IP Address
and same solution for your Online domain be sure is the correct URL You're using |
This problem still occurs till now I don't know why this issue marked as closed please open it again I'm using the latest version of Dio (dio: ^5.0.1) and still getting connection timeout every time although the code was working yesterday without any update !!! I'm using this API |
It is very likely that there is nothing wrong in dio here, this ticket is not actionable. In mobile connectivity, timeouts are not unusual. If you have a specific use case were you think this occurs and you think it may be a problem with dio, please create a new issue following the template and include a reproducible sample. Also check the configuration of your timeouts and try with the defaults instead, if you have custom timeouts set. |
Hi there, |
DioError [DioErrorType.connectTimeout]: Connecting timed out [50000ms]
#0 DioMixin.assureDioError (package:dio/src/dio_mixin.dart:819)
#1 DioMixin._dispatchRequest (package:dio/src/dio_mixin.dart:678)
#2 DioMixin.fetch.. (package:dio/src/dio_mixin.dart:586)
I have a timer task that requests the network every 30 seconds.
But I found a lot of network connection timeout problems in sentry background, I don't know why?
The text was updated successfully, but these errors were encountered: