NSLocalizedDescription=The request timed out. Code=-1001

first of all i'm not an IOS developer, i have a very little knowledge on handling IOS errors. i have developed a game in unity for both IOS and Android.

deployment : AWS Server: Nakama gaming solution. Database : cockroachdb

the app works fine on android but when i try it on IOS sometimes it lags and the session times out and i can't send anymore requests after that. i know this issue is related to network connection but i want to go deeper to find i source of the issue and be able to fix it.

in xcode output i found these errors show up when this happens

is there any better way to diagnose this and go in deep detail of the issue???

is there any better way to diagnose this and go in deep detail of the issue???

A few suggestions here:

  1. Always use TLS in your HTTP requests. This is best practice for secure networking on all of our platforms.

  2. Try a baseline URL to determine where the issue is. For example, try using an baseline reliable URL like one from httpbin dot org to make secure and reliable HTTP requests back and forth. If you are able to get this working then you know you need to look at your server environment more. If this doesnt work then you know you need to look at your client side code.

  3. Take a look at the article for Choosing a Network Debugging Tool if either 1 or 2 do not get you anywhere. This will be tricky because you are using 3rd party code, but it might give you some help on where to go next.

NSLocalizedDescription=The request timed out. Code=-1001
 
 
Q