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

type '_StreamHandlerTransformer<List<int>, List<int>>' is not a subtype of type 'StreamTransformer<Uint8List, List<int>>' of 'streamTransformer' #357

Closed
1 task done
karnadii opened this issue Jul 3, 2019 · 17 comments

Comments

@karnadii
Copy link

karnadii commented Jul 3, 2019

New Issue Checklist

  • I have searched for a similar issue in the project and found none

Issue Info

Info Value
Platform Name flutter, android
Platform Version v1.8.1-pre.11
Dio Version 2.1.8
Android Studio / Xcode Version e.g. Android Studio 3.3.2 / Xcode 10.2.1
Repro rate e.g. all the time (100%) / sometimes x% / only once
Repro with our demo prj e.g. does it happen with our demo project?
Demo project link e.g. link to a demo project that highlights the issue

Issue Description and Steps

I just upgrade my flutter using channel master to v1.8.1-pre.11 and upgrade dio to 2.1.8
my code is exactly the same as example

import 'package:dio/dio.dart';
void getHttp() async {
  try {
    Response response = await Dio().get("http://www.google.com");
    print(response);
  } catch (e) {
    print(e);
  }
}
@onesmarter
Copy link

I had the same problem as you.

@calvinmuller
Copy link

Same for me

 Unhandled Exception: DioError [DioErrorType.DEFAULT]: type '_StreamHandlerTransformer<List<int>, List<int>>' is not a subtype of type 'StreamTransformer<Uint8List, List<int>>' of 'streamTransformer'#0      Stream.transform (dart:async/stream.dart)
#1      DefaultTransformer.transformResponse (package:dio/src/transformer.dart:102:48)

@calvinmuller calvinmuller mentioned this issue Jul 3, 2019
6 tasks
@waitwalker
Copy link

我也遇到了

@Charles1198
Copy link

+1

@allencelee
Copy link

求官方赶紧修复 看来是所有人都遇到这个问题了

@hpoul
Copy link
Contributor

hpoul commented Jul 4, 2019

seriously, would you guys mind stopping spamming this issue? there seems to be already a PR, so if you don't have anything useful to add just add your reaction or subscribe.. I subscribed so i get notified once there is any progress, not so that I get notified for everyone who has that issue as well..

@gerryhigh
Copy link

+1 as well for me--Dio is broken until a fix is released. Thanks.

@wendux wendux closed this as completed in c09eda7 Jul 4, 2019
@wendux
Copy link
Contributor

wendux commented Jul 4, 2019

please upgrade to 2.1.13 and try again.

@arfaWong
Copy link

arfaWong commented Jul 4, 2019

@wendux upgrade to 2.1.9 and still had the same problem

@gerryhigh
Copy link

gerryhigh commented Jul 4, 2019

2.1.9 worked for me. @arfaWong make sure you do a flutter clean. Thanks @wendux

@CoderJava
Copy link

2.1.9 worked for me. @arfaWong make sure you do a flutter clean. Thanks @wendux

Yes. It's worked for me. Thanks.

@SalemCode8
Copy link

2.1.10 and this problem still present really !!

@siyasangab
Copy link

2.1.9 and I have the same issue

@jaripekkala
Copy link

I started receiving this error when changing to the dev flutter channel and stopped when changed back to beta.

@huoshulei
Copy link

2.1.13 正常运行

@arfaWong
Copy link

2.1.13 worked for me. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

16 participants