You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately the problem is likely to be related to your URL or the network connectivity on your device.
However, unless you have a good reason to continue to use ASIHTTPRequest (ASIHTTPRequest is not recommended for new projects), I'd recommend you switch to AFNetworking immediately.
When i try to download the PDF's using ASIHTTPRequest. I am getting the error. Please check the below code and error. Please help me to fix this.
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:strUrl]];
request.shouldAttemptPersistentConnection = NO;
[request setShouldContinueWhenAppEntersBackground:YES];
[request setDownloadDestinationPath:strPdfPath];
[request setTimeOutSeconds:60000];
[request setDelegate:self];
[request setShowAccurateProgress:YES];
[request setDownloadProgressDelegate:progressBar];
[request setDidFinishSelector:@selector(requestFinished:)];
[request setDidFailSelector:@selector(requestFailed:)];
[request setDidStartSelector:@selector(requestStarted:)];
[request startAsynchronous];
Error Domain=ASIHTTPRequestErrorDomain Code=1 "A connection failure occurred" UserInfo=0x15572bc0 {NSUnderlyingError=0x15570b80 "The operation couldn�t be completed. Operation timed out", NSLocalizedDescription=A connection failure occurred}
The text was updated successfully, but these errors were encountered: