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 devtools could not preview http request when debug in remote android device #8305

Open
StitchC opened this issue Sep 6, 2024 · 4 comments
Labels
P2 important to work on, but not at the top of the work list. screen: network Issues with the Network screen.

Comments

@StitchC
Copy link

StitchC commented Sep 6, 2024

Steps to reproduce

  1. Flutter run on a remote machine connect with usb
  2. Open devtool in Android Studio
  3. Select network tab and preview
  4. The network show all request type is socket not http request

Expected results

  1. show http requset header, body and response like use simulator

Actual results

all http request display type is "socket"
image

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.24.1, on macOS 14.6 23G80 darwin-arm64 (Rosetta), locale zh-Hans-CN)
    • Flutter version 3.24.1 on channel stable at
      /Users/chenrunsheng/Documents/flutter_sdk_collection/versions/3.24.1
    • Upstream repository https:/flutter/flutter.git
    • Framework revision 5874a72aa4 (2 周前), 2024-08-20 16:46:00 -0500
    • Engine revision c9b9d5780d
    • Dart version 3.5.1
    • DevTools version 2.37.2

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/chenrunsheng/Library/Android/sdk
    • Platform android-34, build-tools 35.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    ! CocoaPods 1.11.3 out of date (1.13.0 is recommended).
        CocoaPods is a package manager for iOS or macOS platform code.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/to/platform-plugins
      To update CocoaPods, see https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods

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

[✓] Android Studio (version 2024.1)
    • 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.11+0-17.0.11b1207.24-11852314)

[✓] VS Code (version 1.76.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[!] Proxy Configuration
    • HTTP_PROXY is set
    ! NO_PROXY is not set

[✓] Connected device (4 available)
    • TC26 (mobile)                   • 22185523023281        • android-arm64  • Android 11 (API 30)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 14.6 23G80 darwin-arm64
      (Rosetta)
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 14.6 23G80 darwin-arm64
      (Rosetta)
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 128.0.6613.120

[!] Network resources
    ✗ A network error occurred while checking "https://pub.dev/": Connection reset by peer

! Doctor found issues in 3 categories.
@darshankawar darshankawar transferred this issue from flutter/flutter Sep 6, 2024
@elliette
Copy link
Member

@bkonyi I know you recently made some fixes to the Network page. Is this what we expect to be seeing here? Thanks!

@elliette elliette added screen: network Issues with the Network screen. P2 important to work on, but not at the top of the work list. labels Sep 27, 2024
@bkonyi
Copy link
Contributor

bkonyi commented Sep 27, 2024

@darshankawar are you using package:http or dart:io's HttpClient to make your requests? If not, they're not available through the network profiler.

@LiamMarega
Copy link

LiamMarega commented Oct 3, 2024

I have the same problem, i am use 'package:dio/dio.dart'
And i try using dart:io's HttpClient but the error persist

@tuannvm2109
Copy link

Same issue using dio package, any help ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 important to work on, but not at the top of the work list. screen: network Issues with the Network screen.
Projects
None yet
Development

No branches or pull requests

5 participants