Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

type 'Response' is not a subtype of type 'StreamedResponse' in type cast #134

Copy link
Copy link

Description

@antonshkurenko
Issue body actions

Describe the bug
Hey guys, I'm using ^2.0.0-beta.7. I have this error in two cases (100% of time):

  1. Any time I use send method in the client (https://pub.dev/documentation/http/latest/http/Client/send.html)
  2. When I provide client to the CacheManager's config here: https://pub.dev/documentation/flutter_cache_manager/latest/flutter_cache_manager/HttpFileService/HttpFileService.html

It looks like it somehow just force casts and crashes every time here: https://github.com/CodingAleCR/http_interceptor/blob/main/lib/http/intercepted_client.dart#L222

Expected behavior
No crashes

Please complete the following information):

  • Flutter version: 3.10.5
  • IDE: Android Studio
  • http_interceptor Version: ^2.0.0-beta.7
Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.