flutter / devtools

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

DevTools network panel not capturing any request #6447

Open ndasim opened 9 months ago

ndasim commented 9 months ago

We are using http-1.1.0 for network requests in our application. We noticed that the network panel is not working anymore, in previous Flutter versions it was working.

image
fvm flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel stable, 3.13.5, on macOS 13.4.1 22F82 darwin-arm64, locale en-GB)
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/2.19.0/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/ndasim/fvm/versions/3.13.5. Consider adding /Users/ndasim/fvm/versions/3.13.5/bin to the front of your path.
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.1.2)
[✓] VS Code (version 1.82.2)
[✓] Connected device (3 available)
[✓] Network resources

DevTools version: 2.23.1 Connected Device CPU / OS: arm64 (64 bit) android Dart Version: 3.1.2 Flutter Version: 3.13.5 / stable Framework / Engine: 12fccda598 / bd986c5ed2 Connected app type: Flutter native (debug build)

CoderDake commented 9 months ago

Hmm this is curious. Could you please "Toggle Developer Tools" if you are in VSCode. Then see if there are any errors in the console that seem relevant?

ndasim commented 9 months ago

Hi, sorry for my lateness, I'm not using VSCode, I'm using Android Studio. I'm sharing Chrome console view of it:

image

edit: Here is the device info popup:

image

Also, there are a bunch of VM flags that I couldn't take ss of it, if you want to look at specific flags I can share them separately

justjew commented 8 months ago

Same problem. Running DevTools in Chrome (press v on flutter run process). Network panel not tracking anything (or rarely catches 2-3 requests and nothing more). Not working on iOS Simulator nor Android Emulator. I am using dio for http requests.

Here's the doctor: Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.13.9, on macOS 14.0 23A344 darwin-arm64, locale ru-RU) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 15.0) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.3) [✓] VS Code (version 1.83.0) [✓] Connected device (3 available) [✓] Network resources

• No issues found!

LeonManolo commented 7 months ago

same for me: Screenshot 2023-12-01 at 12 56 21

endruszeit commented 6 months ago

We have the same problem with flutter 3.16.5.

We use http 1.1.2.

We run the app on iOS and Android.

The problem appears when open devtools in

laterdayi commented 1 day ago

same