You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
type 'Future<dynamic>' is not a subtype of type 'Future<Response<dynamic>>' #1
Activity
wendux commentedon Apr 27, 2018
已修复,请升级到0.0.9重试.
Yaxian commentedon Jul 18, 2018
Hi, @wendux
I meet this issue with version
0.1.3, when I calldio.downloadmethod.env:
but version
0.0.14works fine.wendux commentedon Jul 19, 2018
@Yaxian fixed, please update to 0.1.4 and try again.
zhouxianjun commentedon Jul 8, 2019
在2.1.7版本中,使用lock并且使用泛型response则会导致类型不匹配错误,初步原因:


在980行
enqueue这个函数并没有声明泛型类型。zhouxianjun commentedon Jul 8, 2019
@wendux 请查看下
lucien-theron commentedon Jul 15, 2019
I get this exception by simply returning:
.catchError((error, stackTrace) => Future.error(error, stackTrace)).Xgamefactory commentedon May 9, 2020
get same error while calling dio.delete with lates dio package.
An error occurred. type 'Future<Response<dynamic>>' is not a subtype of type 'Response<dynamic>'shliama commentedon May 29, 2020
I was getting this error too, right after adding token refresh
InterceptorsWrapper. I noticed that this error occurs when Dio is locked.An error occurred. type 'Future<Response<dynamic>>' is not a subtype of type 'Response<dynamic>'In order to fix it, I changed the signature of
_dispatchRequestmethod insideDio.dartfromFutureOr<Response<T>> _dispatchRequest<T>(RequestOptions options)to
FutureOr _dispatchRequest<T>(RequestOptions options)P.S. I have no idea what I'm doing :(
eelishiram commentedon Aug 24, 2020
this error happens again in latest version of dio (v.3.0.10)
aboutlan commentedon Apr 13, 2021
I ran into the same error when locked. Has anyone solved this error?
codekeyz commentedon Oct 12, 2021
@eelishiram @aboutlan This PR: #1296 fixes this.
Fix csrf token in example (#1)
Merge pull request cfug#1 from Tamir198/patch-1
Fix csrf token in example (cfug#1)