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

Disable DIO's error messages from HTTP2 Adapter #2013

Closed
simplenotezy opened this issue Oct 29, 2023 · 2 comments
Closed

Disable DIO's error messages from HTTP2 Adapter #2013

simplenotezy opened this issue Oct 29, 2023 · 2 comments

Comments

@simplenotezy
Copy link

Package

dio

Version

5.0.3

Operating-System

MacOS

Output of flutter doctor -v

[!] Flutter (Channel stable, 3.10.6, on macOS 14.0 23A344 darwin-arm64, locale en-DK)
    • Flutter version 3.10.6 on channel stable at /Users/mf/fvm/versions/3.10.6
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/3.1.3/libexec/bin/dart, which is not inside your current Flutter SDK
      checkout at /Users/mf/fvm/versions/3.10.6. Consider adding /Users/mf/fvm/versions/3.10.6/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f468f3366c (4 months ago), 2023-07-12 15:19:05 -0700
    • Engine revision cdbeda788a
    • Dart version 3.0.6
    • DevTools version 2.23.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/mf/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[!] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    ✗ CocoaPods installed but not working.
        You appear to have CocoaPods installed but it is not working.
        This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it.
        This can usually be fixed by re-installing CocoaPods.
      To re-install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

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

[✓] Android Studio (version 2022.3)
    • 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.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.83.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.74.0

Dart Version

3.1.3

Steps to Reproduce

Use net http2 network adapter, and have a request fail.

Expected Result

Should not output anything. Would like to completely disable these.

Actual Result

Error: HTTP/2 error: Connection error: Connection is being forcefully terminated. (errorCode: 10)

@simplenotezy simplenotezy added h: need triage This issue needs to be categorized s: bug Something isn't working labels Oct 29, 2023
@ueman
Copy link
Contributor

ueman commented Oct 31, 2023

Hey @simplenotezy, can you add some more details on what exactly you want to do? I do not yet understand what exactly you want to achieve. Ideally you have an example with a before and after.

@ueman ueman added e: documentation Improvements or additions to documentation h: need more info Further information is requested and removed h: need triage This issue needs to be categorized s: bug Something isn't working labels Oct 31, 2023
@simplenotezy
Copy link
Author

I think this was actually not related to dio but our own codebase - apologies for the confusion!

@AlexV525 AlexV525 added i: not related and removed e: documentation Improvements or additions to documentation h: need more info Further information is requested labels Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants