Questions tagged [nsurlerrordomain]
60 questions
112
votes
7 answers
Undocumented NSURLErrorDomain error codes (-1001, -1003 and -1004) using StoreKit
I'm writing StoreKit-related code, and I'm getting some rather troubling error codes when I try to add a purchase to the queue.
So far, I've experienced error codes -1003 and -1004 and I can't find anything about those codes on the internet.
Running…

Hyperbole
- 3,917
- 4
- 35
- 54
89
votes
12 answers
How to fix "NSURLErrorDomain error code -999" in iOS
I've been trying to use Corona SDK's Facebook API to post the score on the game I'm developing on facebook. However, I'm having a problem with it. During the first time I try to post to facebook, I get this error after login and user…

user1597438
- 2,171
- 5
- 35
- 78
67
votes
4 answers
What are the NSURLErrorDomain error code descriptions?
This is my first experience of developing an iOS app. I am trying to POST some data using the Facebook graph API. I am constantly getting the following error:
The operation couldn’t be completed. (NSURLErrorDomain error 400.)
I cannot find the…

rizzz86
- 3,862
- 8
- 35
- 52
21
votes
2 answers
AFNetworking 2.0 - unexpected NSURLErrorDomain error -1012
We ran into the following issue with our app that uses AFNetworking 2.0.
When using AFHTTPRequestOperationManager's GET method, we got an error NSURLErrorDomain code -1012. The request used HTTPS and the server does not require user authentication.…

Charis
- 219
- 1
- 2
- 3
16
votes
2 answers
PBRequester failed with Error in iOS app
I am facing some strange problem in my iOS app. When my app is open and the user presses the sleep/wake button, app calls
applicationWillResignActive
applicationDidEnterBackground
When user right swipe to unlock the screen , app…

iOSAppDev
- 2,755
- 4
- 39
- 77
13
votes
1 answer
Upload NSURLSesssion becomes invalidated in sharing extension in ios8 with error NSURLErrorDomain Code=-995
I try to upload an image using NSURLSession in shared extension in iOS 8 but have this error instantly after calling
[task resume]
Error Domain=NSURLErrorDomain Code=-995 "The operation couldn’t be completed. (NSURLErrorDomain error -995.)"
here…

sasha_nec
- 532
- 5
- 12
12
votes
5 answers
NSURLErrorDomain Code=-1001 error when a http post request is sent
I am using the following code to post an image to my server.
@IBAction func postButtonPressed(sender: UIButton) {
let task = NSURLSession.sharedSession().dataTaskWithRequest(createRequest("http://xx.xx.xxx.xxx/xxxx/"), completionHandler: {
…

Berkan Ercan
- 1,207
- 3
- 14
- 31
8
votes
6 answers
iOS Twitter NSURLErrorDomain Code=-1012
I am trying to get the user's contact details by singning up with twitter in my app. I found this project on github which seems really good. I encounter only one problem. If I run it with my new app consumer secret and consumer key codes from…

Teo
- 3,394
- 11
- 43
- 73
6
votes
4 answers
"NSURLErrorDomain" - code: 18446744073709550594 Ajax call on Xcode 7
I am trying to make an asynchronous call from Xcode 7 as follows and I end up seeing this error "NSURLErrorDomain" - code: 18446744073709550594
This code was fine when I used it in Xcode 6. Has anybody else seen this error?
var task =…

Katakam Nikhil
- 1,375
- 4
- 14
- 22
5
votes
0 answers
Put object request is falling using aws sdk for iOS when connected to wifi
Our iOS application is using the aws sdk to upload small picture to s3 using the putObjectRequest endpoint.
Some of our users are affected by a strange issue which is completely preventing them to upload any picture when they are connected to a…

nebillo
- 1,257
- 10
- 21
4
votes
1 answer
TWRequest post reply NSURLErrorDomain
I am having trouble sending a reply to a tweet using TWRequest api. I am able to post a new tweet/status successfully but replies are failing with error below. Please advise
The error I receive on the reply post is:
Error Domain=NSURLErrorDomain…

lostfound
- 41
- 1
3
votes
1 answer
seaborn.load_dataset results in URLError:
df = sns.load_dataset("tips")
I am trying to load dataset using seaborn, which results in the follow URLError:
TimeoutError Traceback (most recent call last)
File…

Rehan Ahmad
- 31
- 2
3
votes
0 answers
TLS/certificate issue on iOS 14 using certs that worked on iOS 13 [NSURLErrorDomain, Error Code: -1202]
I'm working on a React-Native app that displays a local website via WKWebView. I just updated to iOS 14 and now I'm getting cert issues again. I was not getting this error yesterday but after installing the update I am met with this awful error…

young1link
- 31
- 1
- 5
3
votes
2 answers
Getting Internal Error 500 using MKNetworking Image Upload PHP
I have switched from using the normal way to upload images (Didnt have it working then) to using MKNetworking to assist me with the uploading process, im using this way because i have found i get better error responses and its helping resolve my…

NodeDad
- 1,519
- 2
- 19
- 48
2
votes
3 answers
How to find the error description from an NSError code?
I'm trying to find an easier/more reliable way to figure out an NSError's localized description from its error code than Google searching it.
For example, I know that NSURLErrorDomain code -1003 corresponds to "A server with the specified hostname…

user2129800
- 131
- 1
- 9