DioException on 500 error #2331
Labels
h: need more info
Further information is requested
h: need triage
This issue needs to be categorized
s: bug
Something isn't working
Package
dio
Version
5.7.0
Operating-System
iOS, MacOS
Adapter
Default Dio
Output of
flutter doctor -v
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
The text was updated successfully, but these errors were encountered: