HTTP load failed (error code:

Hi,

I am working on an application , where it getting urls in response for Images to load from that urls.

I am getting HTTP Load failed against error code 1003, and 999 , and i am unable to debug those failed Urls.

is there way to debug those failed HTTP Request so that i can be aware of those list, due to this my app is freezing, and behaving some weird issue sometimes.

any help is much appreciated.


here you go with my plist information


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-/
<plist version="1.0">
<dict>
  <key>CFBundleDevelopmentRegion</key>
  <string>en</string>
  <key>CFBundleExecutable</key>
  <string>$(EXECUTABLE_NAME)</string>
  <key>CFBundleIdentifier</key>
  <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
  <key>CFBundleInfoDictionaryVersion</key>
  <string>6.0</string>
  <key>CFBundleName</key>
  <string>$(PRODUCT_NAME)</string>
  <key>CFBundlePackageType</key>
  <string>APPL</string>
  <key>CFBundleShortVersionString</key>
  <string>4.0</string>
  <key>CFBundleURLTypes</key>
  <array>
  <dict>
  <key>CFBundleURLName</key>
  <string>com.xx.yy</string>
  <key>CFBundleURLSchemes</key>
  <array>
  <string>fb334xxxxxxxx</string>
  <string>DisplayName</string>
  <string>twitterkit-0mIIFjR7pVnLewGj1S2RGg6BN</string>
  </array>
  </dict>
  </array>
  <key>CFBundleVersion</key>
  <string>4.0.1</string>
  <key>FacebookAppID</key>
  <string>334xxxxxxxxx</string>
  <key>FacebookDisplayName</key>
  <string>Display Name</string>
  <key>LSApplicationQueriesSchemes</key>
  <array>
  <string>fbauth2</string>
  <string>fbauth</string>
  <string>twitter</string>
  <string>twitterauth</string>
  </array>
  <key>LSRequiresIPhoneOS</key>
  <true/>
  <key>NSAppTransportSecurity</key>
  <dict>
  <key>NSAllowsArbitraryLoads</key>
  <true/>
  <key>NSAllowsArbitraryLoadsInWebContent</key>
  <true/>
  <key>NSExceptionDomains</key>
  <dict>
  <key></plist>

Seems that errors 1003 and 999 are not HTTP errors, at least not registered in the standard :

see h ttp://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml


Can you show the exact error message ?

Hi Claude thank for reply


here is log that is spread over every where with -1003 and -999.


<Notice> [Firebase/Analytics][I-ACS023012] Firebase Analytics enabled

2018-01-10 22:24:33.694169+0500 xxyy[7050:3123198] Task <EE35DD34-6DA7-4549-88CA-596F09FA6FDD>.<1> finished with error - code: -1001

2018-01-10 22:24:33.697276+0500 xxyy[7050:3123198] Task <EE35DD34-6DA7-4549-88CA-596F09FA6FDD>.<1> HTTP load failed (error code: -999 [1:89])

TIC TCP Conn Failed [21:0x15f403da0]: 12:8 Err(-65554)

2018-01-10 22:24:39.517018+0500 xxyy[7050:3123196] Task <B3C3EFAB-B2E3-43C6-A1FF-C7A750C8CD33>.<4> HTTP load failed (error code: -1003 [12:8])

2018-01-10 22:24:39.519633+0500 xxyy[7050:3123196] Task <B3C3EFAB-B2E3-43C6-A1FF-C7A750C8CD33>.<4> finished with error - code: -1003

TIC TCP Conn Failed [21:0x15f403da0]: 12:8 Err(-65554)

2018-01-10 22:24:39.517018+0500 xxyy[7050:3123196] Task <B3C3EFAB-B2E3-43C6-A1FF-C7A750C8CD33>.<4> HTTP load failed (error code: -1003 [12:8])

2018-01-10 22:24:39.519633+0500 xxyy[7050:3123196] Task <B3C3EFAB-B2E3-43C6-A1FF-C7A750C8CD33>.<4> finished with error - code: -1003

any One?

Yes someone there, asking you to show more context for the error:

- where it occurs in your code

- exact URL content

- exact error message

You can find these errors described in

<Foundation/NSURLError.h>
. Specifically:
  • -999 is

    NSURLErrorCancelled
  • -1001 is

    NSURLErrorTimedOut
  • -1003 is

    NSURLErrorCannotFindHost

Everything except

NSURLErrorCancelled
can crop up from time-to-time based on network conditions. In general your app needs to behave reasonable in the face of such errors. You can use the Network Link Conditioner to verify that by simulating various types of bad networks.

If, on the other hand, you have a specific reproducible case then you can investigate using:

  • A CFNetwork diagnostic logging, per QA1887

  • A packet trace, per QA1176

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

I am also facing the same issue please provide some solution for it.


Following output i am getting



2018-03-29 20:59:07.733425+0530 MyApp[617:181515] TIC Read Status [28:0x1c436a140]: 1:60

2018-03-29 20:59:07.733994+0530 MyApp[617:181515] Task <7224DF11-4CDB-480D-907D-ADEBC425ABAB>.<0> HTTP load failed (error code: -1001 [1:60])

2018-03-29 20:59:07.734178+0530 MyApp[617:181702] NSURLConnection finished with error - code -1001

2018-03-29 20:59:22.418536+0530 MyApp[617:181627] TIC Read Status [19:0x1c0362c40]: 1:60

2018-03-29 20:59:22.420972+0530 MyApp[617:181627] Task <311A377E-1CD9-4BF3-8074-3C0FBA087A97>.<0> HTTP load failed (error code: -1001 [1:60])

2018-03-29 20:59:22.422615+0530 MyApp[617:181517] NSURLConnection finished with error - code -1001

2018-03-29 20:59:28.955711+0530 MyApp[617:181517] TIC Read Status [30:0x1c036c6c0]: 1:60

2018-03-29 20:59:28.958396+0530 MyApp[617:181517] Task <B1732943-4420-48FF-871F-82A8763C31F7>.<0> HTTP load failed (error code: -1001 [1:60])

2018-03-29 20:59:28.960289+0530 MyApp[617:181514] NSURLConnection finished with error - code -1001

2018-03-29 20:59:31.185938+0530 MyApp[617:181514] TIC Read Status [16:0x1c4360a80]: 1:60

2018-03-29 20:59:31.189068+0530 MyApp[617:181514] Task <AF38B35B-4B67-446F-BB72-C955F1DD3BD7>.<0> HTTP load failed (error code: -1001 [1:60])

2018-03-29 20:59:31.191301+0530 MyApp[617:181517] NSURLConnection finished with error - code -1001

2018-03-29 20:59:32.330902+0530 MyApp[617:181514] TIC Read Status [24:0x1c4364ec0]: 1:60

2018-03-29 20:59:32.334454+0530 MyApp[617:181514] Task <582A35E3-ADC7-4686-92A5-163C4EA93A19>.<0> HTTP load failed (error code: -1001 [1:60])

2018-03-29 20:59:32.336198+0530 MyApp[617:181517] NSURLConnection finished with error - code -1001

2018-03-29 20:59:32.632307+0530 MyApp[617:181517] TIC Read Status [21:0x1c4362dc0]: 1:60

2018-03-29 20:59:32.634927+0530 MyApp[617:181517] Task <792E6308-50C2-42FA-B757-6BDC8D43F6EB>.<0> HTTP load failed (error code: -1001 [1:60])

2018-03-29 20:59:32.635780+0530 MyApp[617:181514] NSURLConnection finished with error - code -1001

HTTP load failed (error code:
 
 
Q