Giter Site home page Giter Site logo

Comments (11)

eelishiram avatar eelishiram commented on July 30, 2024 8

this error happens again in latest version of dio (v.3.0.10)

from dio.

Xgamefactory avatar Xgamefactory commented on July 30, 2024 5

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>'

from dio.

shliama avatar shliama commented on July 30, 2024 3

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 _dispatchRequest method inside Dio.dart from

FutureOr<Response<T>> _dispatchRequest<T>(RequestOptions options)

to

FutureOr _dispatchRequest<T>(RequestOptions options)

P.S. I have no idea what I'm doing :(

from dio.

codekeyz avatar codekeyz commented on July 30, 2024 1

@eelishiram @aboutlan This PR: #1296 fixes this.

from dio.

wendux avatar wendux commented on July 30, 2024

已修复,请升级到0.0.9重试.

from dio.

Yaxian avatar Yaxian commented on July 30, 2024

Hi, @wendux
I meet this issue with version 0.1.3, when I call dio.download method.
env:

  • dio: ^0.1.3
  • Flutter: Channel beta, v0.5.1

but version 0.0.14 works fine.

from dio.

wendux avatar wendux commented on July 30, 2024

@Yaxian fixed, please update to 0.1.4 and try again.

from dio.

zhouxianjun avatar zhouxianjun commented on July 30, 2024

在2.1.7版本中,使用lock并且使用泛型response则会导致类型不匹配错误,初步原因:
image
在980行enqueue这个函数并没有声明泛型类型。
image

from dio.

zhouxianjun avatar zhouxianjun commented on July 30, 2024

@wendux 请查看下

from dio.

lucien-theron avatar lucien-theron commented on July 30, 2024

I get this exception by simply returning: .catchError((error, stackTrace) => Future.error(error, stackTrace)).

from dio.

aboutlan avatar aboutlan commented on July 30, 2024

I ran into the same error when locked. Has anyone solved this error?

from dio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.