-
-
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
Cronet exception: m.ms: Exception in CronetUrlRequest: net::ERR_CONNECTION_CLOSED, ErrorCode=5 #2227
Comments
Could you use the standalone |
@AlexV525 probably it's cronet bug only on samsung, created issue there dart-lang/http#1217 |
It's the same behaviour on FireOS. @JSBmanD have you found any solution to fix it? |
@vshvedov don't use rest clients in background and use NativeAdapter. |
@JSBmanD can you give some details or links on this idea please? |
Can't give any links except for empirical experience on ~3k samsung devices. I believe that there's a problem with the dns cache that appears only in the background. |
Package
dio
Version
5.4.1
Operating-System
Android
Adapter
NativeAdapter
Output of
flutter doctor -v
Dart Version
3.3.4
Steps to Reproduce
Expected Result
Requests succeed
Actual Result
After some time requests will fail with
Cronet exception: m.ms: Exception in CronetUrlRequest: net::ERR_CONNECTION_CLOSED, ErrorCode=5, InternalErrorCode=-100, Retryable=true, uri=https://***/v1/polling.getUpdates?ts=***,statusCode: null,cause: DioException [unknown]: null
Devices distribution (out of 30k events):

Full log
The text was updated successfully, but these errors were encountered: