Hello everyone! I have the problem with sending requests. In project for working with network is using Alamofire and on some places Moya. Sometimes requests receiving time out error in 7-10 seconds, even if timeOutIntervalForResource and timeOutIntervalForRequest are increased up to 90 seconds. So, we've checked sent requests on backend side, but timeouted requests are even didn't reached the server. On Android app there is no problems with time out. So, I can't figure out how to solve this problem. Have some idea?
iOS app requests timeouting
Sometimes requests receiving time out error in 7-10 seconds, even if
timeOutIntervalForResource
andtimeOutIntervalForRequest
are increased up to 90 seconds.
Is this something you can reproduce in your office? Or are you only seeing it in reports coming in from the field?
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
I can reproduce it
Cool. Given that, you have a number of debugging options:
-
The new HTTP instrument, as discussed WWDC 2021 Session 10212 Analyze HTTP traffic in Instruments
The basic idea is to try to track down the source of the timeout, that is, is is coming up from the network or generated internally by CFNetwork.
If you’d like more in-depth help with this I recommend that you open a DTS tech support incident so that I, or my likely my colleague Matt, can allocate the time to help you properly.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"