devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Network view loses network calls

Open escamoteur opened this issue 7 months ago • 4 comments

I haven't found any pattern when this happens but regularly I have the problems when trying to debug a backend issue that either the network view stops recording and event or that it only records some events and most often exactly the one I am interested in is missing so that I have to switch to an external proxy debugger like fiddler.

We use the new native HttpClients on iOS and Android, I don't know if that might have an effect.

escamoteur avatar May 12 '25 18:05 escamoteur

Can you please share the version of DevTools you are using?
You can check it by running:

flutter --version

Also just suggesting a temporary workaround (Using FVM or you may use any similar tool), so that you may not have to switch to other tools for this.

While this might not be the ideal solution, you can try the following workaround to unblock yourself until a proper fix is available:

With FVM, you can use a different Flutter version without changing the version for your project.


  1. Install FVM
    Follow the installation steps here: Install FVM

  2. Install an older Flutter version (try the version that works best for you)

    fvm install 3.27.3
    
  3. Launch DevTools using FVM
    You can run either of the following:

    fvm dart devtools
    
  4. Use DevTools for Debugging
    Once DevTools launches in the browser, paste the DevTools URL (printed in your logs) into it to begin debugging.


Note:
Once the issue is resolved, you can use Devtools with usual way and switch back to the updated Flutter version to stay on the latest stable release.

hrajwade96 avatar May 23 '25 18:05 hrajwade96

I have seen the same kind of behavior as mentioned by @escamoteur . The scenario to "break" the network tab is unclear, but it seems to consistently fail to log any network requests after a hot restart. We also have some more random issues of network calls being logged and all of a sudden nothing appears anymore, but there is no clear pattern for these scenarios

[✓] Flutter (Channel stable, 3.32.6, on macOS 15.5 24F74 darwin-arm64, locale en-FR) [855ms]
    • Flutter version 3.32.6 on channel stable at /Users/adrien.padol/fvm/versions/3.32.6
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 077b4a4ce1 (3 days ago), 2025-07-08 13:31:08 -0700
    • Engine revision 72f2b18bb0
    • Dart version 3.8.1
    • DevTools version 2.45.1

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc3) [1,755ms]
    • Android SDK at /Users/adrien.padol/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0-rc3
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [1,265ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16E140
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [15ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.3) [14ms]
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11572160)

[✓] VS Code (version 1.101.2) [12ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.108.0

Edit: Regarding the hot restart issue I found this comment https://github.com/flutter/devtools/issues/9203#issuecomment-3012866703 and the workaround seems to help a lot in my case

Miiite avatar Jul 11 '25 15:07 Miiite

The exact same issue happening to us. After hot restart, the network calls do not show up anymore.

davor-layer-four avatar Jul 15 '25 07:07 davor-layer-four

@davor-layer-four and @Miiite, I fixed an issue with missing network requests after Hot Restart with https://github.com/flutter/devtools/pull/9271. This should be fixed with the DevTools in Flutter 3.35.0.

@escamoteur can you say whether you still see intermittent missing requests when using DevTools from Flutter 3.35.0? Thank you much!

srawlins avatar Oct 17 '25 00:10 srawlins