We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我的接口200时返回bool类型,但是400的时候返回的是一个json对象,我加入范型post 接口返回400的时候提示该错误: flutter: #0 Dio._assureResponse (package:dio/src/dio.dart:1012:9) #1 Dio.resolve. (package:dio/src/dio.dart:309:14) #2 _rootRunUnary (dart:async/zone.dart:1132:38) #3 _CustomZone.runUnary (dart:async/zone.dart:1029:19) #4 _FutureListener.handleValue (dart:async/future_impl.dart:126:18) #5 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45) #6 Future._propagateToListeners (dart:async/future_impl.dart:668:32) #7 Future._completeWithValue (dart:async/future_impl.dart:483:5) #8 Future._asyncComplete. (dart:async/future_impl.dart:513:7) #9 _rootRun (dart:async/zone.dart:1124:13) #10 _CustomZone.run (dart:async/zone.dart:1021:19) #11 _CustomZone.runGuarded (dart:async/zone.dart:923:7) #12 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:963:23) #13 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #14 _startMicrotaskLoop (dart:a<…>
The text was updated successfully, but these errors were encountered:
似乎是responseres类型转换时出现问题
Sorry, something went wrong.
返回类型是动态的情况可以不指定类型参数,此时T为dynamic
dynamic
No branches or pull requests
New Issue Checklist
Issue Info
Issue Description and Steps
我的接口200时返回bool类型,但是400的时候返回的是一个json对象,我加入范型post
接口返回400的时候提示该错误:
flutter: #0 Dio._assureResponse (package:dio/src/dio.dart:1012:9)
#1 Dio.resolve. (package:dio/src/dio.dart:309:14)
#2 _rootRunUnary (dart:async/zone.dart:1132:38)
#3 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#4 _FutureListener.handleValue (dart:async/future_impl.dart:126:18)
#5 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:639:45)
#6 Future._propagateToListeners (dart:async/future_impl.dart:668:32)
#7 Future._completeWithValue (dart:async/future_impl.dart:483:5)
#8 Future._asyncComplete. (dart:async/future_impl.dart:513:7)
#9 _rootRun (dart:async/zone.dart:1124:13)
#10 _CustomZone.run (dart:async/zone.dart:1021:19)
#11 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#12 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:963:23)
#13 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#14 _startMicrotaskLoop (dart:a<…>
The text was updated successfully, but these errors were encountered: