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

Transformer.isJsonMimeType throws format exceptions without caught #2256

Closed
AlexV525 opened this issue Jun 25, 2024 · 0 comments · Fixed by #2257
Closed

Transformer.isJsonMimeType throws format exceptions without caught #2256

AlexV525 opened this issue Jun 25, 2024 · 0 comments · Fixed by #2257
Assignees
Labels
p: dio Targeting `dio` package s: bug Something isn't working

Comments

@AlexV525
Copy link
Member

Package

dio

Version

5.4.3+1

Operating-System

Android, iOS, Web, MacOS, Linux, Windows

Adapter

Default Dio

Output of flutter doctor -v

[✓] Flutter (Channel stable, 3.19.6, on macOS 14.5 23F79 darwin-arm64 (Rosetta), locale zh-Hans-CN)
    • Flutter version 3.19.6 on channel stable at /Users/alex/dev/flutter-stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 54e66469a9 (10 weeks ago), 2024-04-17 13:08:03 -0700
    • Engine revision c4cd48e186
    • Dart version 3.3.4
    • DevTools version 2.31.1

Dart Version

Dart 3.3.4

Steps to Reproduce

dio.get('https://nhrl6-qyaaa-aaaao-ae6kq-cai.raw.ic0.app/file/859.png');

Expected Result

Returns response without exceptions.

Actual Result

Error: Error on line 1, column 5: Invalid media type: expected "/".

1 │ .png;charset=utf-8
  │     ^
@AlexV525 AlexV525 added p: dio Targeting `dio` package s: bug Something isn't working labels Jun 25, 2024
@AlexV525 AlexV525 self-assigned this Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p: dio Targeting `dio` package s: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant