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

Dio Exception in response transformer handle . #489

Closed
HDHunter opened this issue Jul 9, 2019 · 3 comments
Closed

Dio Exception in response transformer handle . #489

HDHunter opened this issue Jul 9, 2019 · 3 comments

Comments

@HDHunter
Copy link

HDHunter commented Jul 9, 2019

DioError [DioErrorType.DEFAULT]: type '_StreamHandlerTransformer<List, List>' is not a subtype of type 'StreamTransformer<Uint8List, List>' of 'streamTransformer

#1 DefaultTransformer.transformResponse (package:dio/src/transformer.dart:102:48) <asynchronous suspension> #2 Dio._makeRequest (package:dio/src/dio.dart:764:38) <asynchronous suspension> #3 Dio._request.<anonymous closure>.<anonymous closure> (package:dio/src/dio.dart:703:22) #4 _rootRunUnary (dart:async/zone.dart:1132:38) #5 _CustomZone.runUnary (dart:async/zone.dart:1029:19) #6 _FutureListener.handleValue (dart:async/future_impl.dart:126:18) #7 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45) #8 Future._propagateToListeners (dart:async/future_impl.dart:668:32) #9 Future._complete (dart:async/future_impl.dart:473:7) #10 _SyncCompleter.complete (dart:async/future_impl.dart:51:12) #11

在执行demo login 操作的时候,项目返回666异常,debug发现是 dio 处理response的一个异常,导致 responseResult为空。项目master使用的是,^2.1.4。有结局方案吗。

已经的response是201,body是 already added.

@CarGuo
Copy link
Owner

CarGuo commented Jul 9, 2019

em····我刚刚试了下,可以正常登陆,没异常呢

@CarGuo CarGuo closed this as completed Jul 18, 2019
@mgh644
Copy link

mgh644 commented Jul 19, 2019

我也存在这个问题欸~

@mgh644
Copy link

mgh644 commented Jul 19, 2019

模拟器不行,,,真机才可以

@jayVRIY jayVRIY mentioned this issue Dec 8, 2022
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

No branches or pull requests

3 participants