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

Request in DioError #197

Closed
jhomlala opened this issue Mar 2, 2019 · 1 comment
Closed

Request in DioError #197

jhomlala opened this issue Mar 2, 2019 · 1 comment

Comments

@jhomlala
Copy link

jhomlala commented Mar 2, 2019

Hi,
i'm using interceptor which has method:

 @override
  onError(DioError err) {
    print("Got error");
    if (err.request == null){
      print("Req is null");
    } else {
      print("Req is ok");
    }
}

And i'm using Dio:
var dio = Dio(); dio.get("https://wendux.github.io/xsddddd");

Dio sends request, but 404 happens, so onError is being invoked. DioError object always have request = null. Why Dio doesn't include Request object in DioError?

Thanks

wendux pushed a commit that referenced this issue Mar 4, 2019
@wendux
Copy link
Contributor

wendux commented Mar 4, 2019

fixed in v2.0.17

@wendux wendux closed this as completed Mar 6, 2019
wendux pushed a commit that referenced this issue May 21, 2019
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

2 participants