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

ResponseType.stream is not working on web. #2254

Closed
mrsrmn opened this issue Jun 23, 2024 · 1 comment
Closed

ResponseType.stream is not working on web. #2254

mrsrmn opened this issue Jun 23, 2024 · 1 comment

Comments

@mrsrmn
Copy link

mrsrmn commented Jun 23, 2024

Package

dio

Version

5.4.3+1

Operating-System

Web

Adapter

Default Dio

Output of flutter doctor -v

[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79
    darwin-arm64, locale tr-TR)
    • Flutter version 3.22.2 on channel stable at
      /Users/emirs/Downloads/flutter
    • Upstream repository
      https://github.com/flutter/flutter.git
    • Framework revision 761747bfc5 (3 weeks ago), 2024-06-05
      22:15:13 +0200
    • Engine revision edd8546116
    • Dart version 3.4.3
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android
    SDK version 34.0.0)
    • Android SDK at /Users/emirs/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Users/emirs/Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.10+0-17.0.10b1087.21-11609105)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.13.0

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

[✓] Android Studio (version 2024.1)
    • Android Studio at /Users/emirs/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-11609105)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.1.3)
    • IntelliJ at /Users/emirs/Applications/IntelliJ IDEA
      Ultimate.app
    • 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

[✓] Connected device (4 available)
    • Emir’s iPhone (mobile)          •
      00008101-000A58240A98001E • ios            • iOS 17.5.1
      21F90
    • macOS (desktop)                 • macos
      • darwin-arm64   • macOS 14.5 23F79 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad
      • darwin         • macOS 14.5 23F79 darwin-arm64
    • Chrome (web)                    • chrome
      • web-javascript • Google Chrome 126.0.6478.63

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Dart Version

3.4.3

Steps to Reproduce

  1. simply create a POST request with the responseType set as ResponseType.stream

Expected Result

return the stream, as it does on other platforms.

Actual Result

instead of a stream, it directly gives the response body as one when the stream finishes.

@mrsrmn mrsrmn added h: need triage This issue needs to be categorized s: bug Something isn't working labels Jun 23, 2024
@AlexV525
Copy link
Member

Streaming response is unavailable on the Web platform with XHR-based implementations. dart-lang/http#593

@AlexV525 AlexV525 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 24, 2024
@AlexV525 AlexV525 added i: out of support and removed h: need triage This issue needs to be categorized s: bug Something isn't working labels Jun 24, 2024
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

2 participants