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

Can't catch error assureDioError #1253

Closed
1 task
thep0y opened this issue Aug 22, 2021 · 5 comments
Closed
1 task

Can't catch error assureDioError #1253

thep0y opened this issue Aug 22, 2021 · 5 comments

Comments

@thep0y
Copy link

thep0y commented Aug 22, 2021

New Issue Checklist

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

Issue Info

Info Value
Platform Name flutter
Platform Version 2.2.3
Dio Version 4.0.0
Android Studio / Xcode Version Android Studio 2020.3.1
Repro rate all the time (100%)
Repro with our demo prj no
Demo project link e.g. link to a demo project that highlights the issue

Issue Description and Steps

Disconnect from the network.

  Future<Response> _get(String url) async {
    try {
      return await dio.get(url, options: Options(responseDecoder: _gbkDecoder));
    } catch (e) {
      print(e);
      return Future.error(e);
    }
  }

屏幕截图 2021-08-22 163718

@Domzak
Copy link

Domzak commented Aug 24, 2021

Same here

@2shrestha22
Copy link

this is the problem by the time I am using dio

@theowenyoung
Copy link

Same here

@a7md0
Copy link

a7md0 commented Nov 12, 2021

Same here, and those issues too

#1171
#1306

@wendux
Copy link
Contributor

wendux commented Nov 19, 2021

try 4.0.3

@wendux wendux closed this as completed Nov 28, 2021
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

6 participants