Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

API failed with error Error Domain=NSURLErrorDomain Code=-1003

For our iOS application I am using AWS server and for a particular API I am always getting failed with error "API failed with error Error Domain=NSURLErrorDomain Code=-1003. A server with the specified hostname could not be found."

I am using AFNetworking for making API request.

Any hints as to where I might be going wrong? Whether its as API/Server issue or a client/iOS side issue.

like image 351
Shrinivas Kulkarni Avatar asked Jul 21 '26 02:07

Shrinivas Kulkarni


1 Answers

This error would typically suggest a DNS related issue.. It had nothing to do with AFNetworking (except for maybe reporting the wrong error)

like image 64
Mayank Patel Avatar answered Jul 22 '26 21:07

Mayank Patel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!