While there wasn't any internet connection, the interceptor was returning a CertificateCouldNotBeVerifiedException. Then Dio assumed that exception was an Unknown Exception. I fixed this bug by returning DioException.connectionError instead of CertificateCouldNotBeVerifiedException.
While there wasn't any internet connection, the interceptor was returning a CertificateCouldNotBeVerifiedException. Then Dio assumed that exception was an Unknown Exception. I fixed this bug by returning DioException.connectionError instead of CertificateCouldNotBeVerifiedException.