Backend sent back a 200, but frontend received a -1001 or -1005 NSURLError

My app sent a network request to the backend. The backend returns a 200, but the front end received a -1001 or -1005 NSURLError. Any clue why this could be happening?

Answered by DTS Engineer in 830925022

Error -1001 is NSURLErrorTimedOut. Error -1005 is NSURLErrorNetworkConnectionLost. These are both transport errors, that is, the client was unable to send the request to the server or receive its response. If you can reproduce the problem then I recommend that you investigate using one of the network debugging tools described in Choosing a Network Debugging Tool. OTOH, if this only happens intermittently then reply back here and I’ll explain how you might tackle that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Error -1001 is NSURLErrorTimedOut. Error -1005 is NSURLErrorNetworkConnectionLost. These are both transport errors, that is, the client was unable to send the request to the server or receive its response. If you can reproduce the problem then I recommend that you investigate using one of the network debugging tools described in Choosing a Network Debugging Tool. OTOH, if this only happens intermittently then reply back here and I’ll explain how you might tackle that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Backend sent back a 200, but frontend received a -1001 or -1005 NSURLError
 
 
Q