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
@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
The text was updated successfully, but these errors were encountered:
Hi,
i'm using interceptor which has method:
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
The text was updated successfully, but these errors were encountered: