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

DioException on 500 error #2331

Open
ARASHz4 opened this issue Nov 22, 2024 · 0 comments
Open

DioException on 500 error #2331

ARASHz4 opened this issue Nov 22, 2024 · 0 comments
Labels
h: need more info Further information is requested h: need triage This issue needs to be categorized s: bug Something isn't working

Comments

@ARASHz4
Copy link

ARASHz4 commented Nov 22, 2024

Package

dio

Version

5.7.0

Operating-System

iOS, MacOS

Adapter

Default Dio

Output of flutter doctor -v

[✓] Flutter (Channel stable, 3.24.3, on macOS 15.1 24B83 darwin-arm64, locale
    en-US)
    • Flutter version 3.24.3 on channel stable at /Users/arash/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2663184aa7 (2 months ago), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Volumes/Software/Development/SDKs/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16A242d
    • CocoaPods version 1.15.2

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

[✓] Android Studio (version 2024.2)
    • 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 21.0.3+-79915917-b509.11)

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

[✓] Connected device (4 available)
    • iPhone Arash (mobile)           • 00008110-000855E13491A01E • ios
      • iOS 18.1 22B83
    • macOS (desktop)                 • macos                     • darwin-arm64
      • macOS 15.1 24B83 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin
      • macOS 15.1 24B83 darwin-arm64
    • Chrome (web)                    • chrome                    •
      web-javascript • Google Chrome 131.0.6778.86

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

• No issues found!

Dart Version

3.5.3

Steps to Reproduce

I have API, and it gives me 500 errors in Postman, but when I test it in Dio, it gives me DioException [unknown]: null, Error: HttpException: Connection closed while receiving data
but other errors like 400 or 401 are ok, and i can figure out what error happened

Expected Result

response.statusCode == 500

Actual Result

DioException [unknown]: null
Error: HttpException: Connection closed while receiving data

@ARASHz4 ARASHz4 added h: need triage This issue needs to be categorized s: bug Something isn't working labels Nov 22, 2024
@AlexV525 AlexV525 added the h: need more info Further information is requested label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
h: need more info Further information is requested h: need triage This issue needs to be categorized s: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants