ios


I am getting Error Domain=NSPOSIXErrorDomain Code=2 when making API request from iOS


Hi I am getting Error Domain=NSPOSIXErrorDomain Code=2 in
- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error delegate method.
This is very strange, all my other APIs are working.
The only thing is that in this API I am sending large sized arrays in POST Request.
Why such errors happen?
Its my modal class:
Global Variable-
NSString *number;
NSArray * globalParsedcontactsArray;
//Calling Function1 from another class in background thread
-(void)function1{
//Database Operation:
NSMutableArray *parsedNumberArray = [[NSMutableArray alloc]init];
number = #"some value";
for loop
{
[parsedNumberArray addObject:localVar1];
}
globalParsedcontactsArray = parsedNumberArray;
dispatch_async(dispatch_get_main_queue(), ^{
[self requestAPIInMainThread : globalParsedcontactsArray];
});
}
+(void) requestAPIInMainThread :(NSArray *)array
{
NSArray *objects = [NSArray arrayWithObjects:number,array ,nil];
NSArray *keys = [NSArray arrayWithObjects#"key1", #"key2",nil];
NSDictionary *Dictionary = [NSDictionary dictionaryWithObjects:objects forKeys:keys];
[self requestAPI:Dictionary];
}
and in my networkConnection delegate didFailwith error i am getting POSIX error 2, no such files

Related Links

Can't tap overlay if map zoomed too close
How to save GIFs with the PHPhotoLibrary?
Why do internal inconsistencies occur in Main.storyboard and how do I get around it?
UITableViewCell layout not updating until cell is reused
How to show callout for pin on map without tapping on it?
Xcode 8.1: UITests are NOT running
iOS display message to user from background
GTest on iOS with Xcode 7.3/8
How to use same entity class for a variety of data store types (SQLite, CoreData, etc.)?
Activity indicator take long times stop animating when using try catch to remove AVPlayer observer
Make UIViewController appear from bottom, then hide it [closed]
How to create multiple views in single nib file (swift 3)?
disable the UIview elements from another view in ios
ReactiveCocoa: Xcode asking me the conversion to swift 3
Location Services Stop working after reinstall with iOS10
QuickBlox iOS SDK , Enabling Cloud Back-End Server AUTHKEY/APPLICATION ID TO APP DELEGATE

Categories

HOME
wpf
ssl
selenium
actions-on-google
bootstrap-4
sharepoint-2013
angular2-forms
module
ssl-certificate
anylogic
linear-programming
wxpython
box
openvpn
addeventlistener
jasypt
c++14
windows-server-2012-r2
wav
hyperion
openframeworks
doorkeeper
vulkan
google-cloud-sdk
message
orchardcms-1.10
next
prerender
syswow64
lexikjwtauthbundle
procedure
slime
mlr
mediator
mediacodec
sql-server-2014-express
apscheduler
tensor
server-sent-events
nib
edit-distance
sourcetree
bezier
bem
atlassian-bitbucketserver
symfony-process
csr
plasticscm
linear
syncfusion
spark-submit
keyboard-maestro
invalidate
clientscript
jquery-masonry
dwr
python-module
flying-saucer
facebook-canvas
tastypie
waf
replicate
turbo-c
sizing
cabal-install
android-sdk-tools
sqlite-net
cglib
ckcontainer
xpdf
xmllint
groupbox
viewengine
filenet-content-engine
membership
gem
smarty2
movie
getuikit
swift-array
json-web-token
gdk
iphone-privateapi
b2b
antisamy
preon
ramdisk
scala-pickling
location-client
emitmapper
webcal
loadlibrary
arden-syntax
expression-encoder-sdk
ondraw
jetspeed2
jquery-pagination
symstore
high-traffic
case-tools

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App