Open xhc-code opened 2 days ago
Are you using native_dio_adapter
?
Are you using
native_dio_adapter
?
indeterminacy,But the httpClientAdapter parameter is not configured
Could you write a minimal reproducible example?
好的。
https://github.com/xhc-code/my_flutter_network_problem.git
The code here includes both HTTP and sockets when using Dio to request linked data. Moreover, the number of socket and get requests is not equal.
The code in the project has not been fully reproduced (only socket requests appear), and there may be additional configurations for the Dio in the project, but I need to check again.
Package
dio
Version
dio: ^5.4.3+1
Operating-System
Android
Adapter
Default Dio
Output of
flutter doctor -v
Dart Version
3.5.3
Steps to Reproduce
The HTTP interface requests sent cannot be displayed and are all displayed as sockets.
Expected Result
Actual display of the request address and parameter information of the interface
Actual Result
Cannot display the true information of the request sent.
In the issue of devtool, many people have also encountered such problems, and the final conclusion is that Dio may not have used the basic request library provided by Flutter, which resulted in devtool being unable to capture requests sent through Dio. https://github.com/flutter/devtools/issues/8518