Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PAC Fetch failed with error [NSURLErrorDomain:-1003]

I see this error in my logs and I don't know what it means:

PAC Fetch failed with error [NSURLErrorDomain:-1003]
2017-06-08 17:07:56.157874+0200 xxxxxx[27059:7093559] [] nw_proxy_resolver_create_parsed_array PAC evaluation error: NSURLErrorDomain: -1003

At the same time I have a problem with a collectionView in my app. Don't know if it's related to the error or not:

Sometimes, and only if the app is used in one remote office of our Company, both with the simulator and a real device, a collectionView that simply receives an images array and show them on the screen, just stops working.

It's not like it didn't just load the images, it seems like the entire collectionView doesn't show up.

I'm testing the same app with simulators and devices in another office (another city) and it NEVER happened to me. Other that that "PAC" error, I only see some auto layout constraint problems, but I see the same errors in my logs and it still works perfectly.

The persons that are testing the app on the remote location say that they have to remove and reinstall the app to make it work again.

Any clue?

like image 699
Aleph72 Avatar asked Jun 08 '17 15:06

Aleph72


1 Answers

Had a similar problem fixed it by this method. Hope this helps. The simulator uses your computers network connection, so I recommend checking the System Preferences > Network > Advanced > Proxies > Automatic Proxy Configuration : You must disable Auto Proxy Discovery.

like image 149
Frankenstein Avatar answered Nov 20 '22 12:11

Frankenstein