flutter / devtools

Performance tools for Flutter
https://flutter.dev/docs/development/tools/devtools/
BSD 3-Clause "New" or "Revised" License
1.59k stars 326 forks source link

Flutter debugging network view displays only socket request issues #8518

Open xhc-code opened 2 days ago

xhc-code commented 2 days ago

image image

What is actually requested in the picture https://cdn.pixabay.com/photo/2023/09/25/20/138/lisbon-8275994_1280.jpg Request, but in Flutter's debugging network, it shows a socket request and cannot see the parameters of the request and response. May I ask why this is? We are using Flutter>version 3.4.1 and the Dio: ^ 5.4.3+1 request library.

The actual requests sent are all HTTP or HTTPS, but all the requests displayed in the socket are socket requests. I don't know where the problem lies because the socket is clearly not used.

Using an Android emulator

Image.network("https://cdn.pixabay.com/photo/2023/09/25/20/138/lisbon-8275994_1280.jpg", width: 50, height: 50,), This is the image component that makes the request, and requests made using the Dio library are also socket requests displayed on the network.

xhc-code commented 2 days ago

Ask an off topic question,May I ask why there have been no new builds for releases since 2020?

xhc-code commented 2 days ago

https://github.com/flutter/devtools/issues/8502 The same problem, but after reading the content inside, it has not been solved.

xhc-code commented 1 day ago

https://github.com/xhc-code/my_flutter_network_problem.git image

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 request for Image.network network images is not displayed in the network view.

zigapovhe commented 15 hours ago

Having the same issues with using http package on latest Flutter 3.24.4.