-
Notifications
You must be signed in to change notification settings - Fork 380
Cronet exception: m.ms: Exception in CronetUrlRequest: net::ERR_CONNECTION_CLOSED, ErrorCode=5 #1217
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
Comments
How are you using |
We have |
I now see this exceptions too in our app and we don't use dio. V13.3 |
-100 seems to mean 5 means Does anyone have a traceback that indicates the line of code that this exception is originating from? |
It happens on a polling GET call to our backend. Nothing special besides that we call this URL every 30s
Am 25. Apr. 2025, 18:16 -0500 schrieb Brian Quinlan ***@***.***>:
… brianquinlan left a comment (dart-lang/http#1217)
-100 seems to mean ILLEGAL_ARGUMENT:
https://chromium.googlesource.com/chromium/src/+/master/components/cronet/native/cronet.idl#205
5 means ERROR_CONNECTION_CLOSED:
https://chromium.googlesource.com/chromium/src/+/master/components/cronet/native/cronet.idl#87
Does anyone have a traceback that indicates the line of code that this exception is originating from?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
I noticed that I get this when my app goes into the background and tries to make a REST call to an API (i.e. every 30 seconds):
As soon as I bring it back to the foreground everything is back to normal. Tested on a Google Pixel 6 |
Could someone post a stack trace so I can see what line of code in the |
The stack trace is not really helpful and most of it just mentions from what part of my app this originates
The only line in
|
Package
cronet_http
Version
1.2.1
Operating-System
Android
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: