Skip to content
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

Flutter debugging network view displays only socket request issues #8518

Open
xhc-code opened this issue Nov 11, 2024 · 7 comments
Open

Flutter debugging network view displays only socket request issues #8518

xhc-code opened this issue Nov 11, 2024 · 7 comments

Comments

@xhc-code
Copy link

xhc-code commented Nov 11, 2024

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
Copy link
Author

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

@xhc-code
Copy link
Author

#8502
The same problem, but after reading the content inside, it has not been solved.

@xhc-code
Copy link
Author

xhc-code commented Nov 12, 2024

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
Copy link

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

@Sten435
Copy link

Sten435 commented Nov 14, 2024

Same issue here, it looks like they don't mind the broken system. They are more focused on other things than making something important work... :-(

@zigapovhe
Copy link

@kenzieschmoll Can you check this please? Looks like it's completely broken for lots of people. Thanks!

@yasaleo
Copy link

yasaleo commented Nov 15, 2024

same here ,
When I debug my Flutter app on an Android emulator in my Mac, the network requests don't show up correctly in the Flutter DevTools at first. It starts working as expected if I switch to the iOS simulator and then back to the Android emulator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants