N
N
nuclear_kote2016-06-04 19:11:50
Angular
nuclear_kote, 2016-06-04 19:11:50

How to distinguish 401 error from timeout in ionics on ios?

I make a request to a service that requires authorization. On Android, 401 errors are returned (everything is fine), on iOS -1. I turn off the network, again I make a request to the service. It returns -1 on Android and -1 on iOS. How can you tell a 401 from a timeout? Rejects in interceptor->responseError come the same.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2016-06-04
@AMar4enko

Check iOS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question