-
-
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
Issues with http2_adapter in dio causing HTTP/1.1 requests to fail and incorrect traffic type displayed in Flutter DevTools #2341
Labels
i: out of support
p: dependency
Targeting packages that's used by dio packages
p: http2_adapter
Targeting `http2_adapter` package
Comments
TheWalkingDead1024
added
h: need triage
This issue needs to be categorized
s: bug
Something isn't working
labels
Dec 10, 2024
Please provide a minimal reproducible example. We have a test to make sure that the adapter works with non-TLS requests and HTTP/1.x responses. |
result:
https://github.com/cfug/dio/blob/main/example_dart/lib/http2_adapter.dart |
thx. But not working. I found the error is coming from here https://github.com/dart-lang/http/blob/dada989f4c30a618b6b707da23215802a8c6c085/pkgs/http2/lib/src/frames/frame_reader.dart#L79
I tried increasing maxFrameSize, but a new error occurred
…------------------ 原始邮件 ------------------
发件人: "cfug/dio" ***@***.***>;
发送时间: 2024年12月29日(星期天) 上午8:11
***@***.***>;
***@***.******@***.***>;
主题: Re: [cfug/dio] Issues with http2_adapter in dio causing HTTP/1.1 requests to fail and incorrect traffic type displayed in Flutter DevTools (Issue #2341)
ConnectionManager(
proxyConnectedPredicate: (protocol, status) {
return status.contains('200') ||
status.startsWith('HTTP/2.0') ||
status.startsWith('HTTP/1.1 200');
},
idleTimeout: const Duration(seconds: 10),
) may it help
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Related to dart-lang/http#1383. |
AlexV525
added
i: out of support
p: http2_adapter
Targeting `http2_adapter` package
p: dependency
Targeting packages that's used by dio packages
and removed
h: need more info
Further information is requested
h: need triage
This issue needs to be categorized
s: bug
Something isn't working
labels
Dec 30, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
i: out of support
p: dependency
Targeting packages that's used by dio packages
p: http2_adapter
Targeting `http2_adapter` package
Package
dio
Version
5.7.0
Operating-System
Android
Adapter
Http2Adapter
Output of
flutter doctor -v
Dart Version
3.3.0
Steps to Reproduce
dio
withhttp2_adapter
as follows:Expected Result
HTTP/1.1 requests should be handled correctly without failing, and the network traffic should be appropriately categorized and displayed in Flutter DevTools.
Actual Result
HTTP/1.1 requests fail when using http2_adapter, and the network traffic is incorrectly displayed as WebSocket traffic in Flutter DevTools.
The text was updated successfully, but these errors were encountered: