Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8247763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:57:42+00:00 2026-06-07T22:57:42+00:00

While downloading a file from Amazon S3 in iOS. Intermittently NSURLConnectionDownloadDelegate’s method didFailWithError: get

  • 0

While downloading a file from Amazon S3 in iOS. Intermittently NSURLConnectionDownloadDelegate’s method didFailWithError: get called and this is what I got when I logged received NSError object

Error Code: 109
Error Domain: SSErrorDomain
Error Description: “Cannot connect to .s3.amazonaws.com”

Searched all the Apple documentation, StackOverflow and other sites but not found anything on this. Today I raised a technical query to Apple also for this using my developer account.

Any idea ?

Update:

So after looking into HTTP response error code (403 Forbidden), I got the idea. It is because of “RequestTimeTooSkewed” error from S3 (The difference between the request time and the current time is too large.). I cross checked it by changing iPad’s/Mac’s system time by 1 hour and this error is coming immediately now, even for a small (200kb) file.

Now as suggested in many blogs I am first making a HEAD request to AWS as below to get the Date string and not passing the system Date

NSString *awsURL = @"http://s3.amazonaws.com";
    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:awsURL]];  
    [request setHTTPMethod:@"HEAD"];  

    NSHTTPURLResponse *response;  
    [NSURLConnection sendSynchronousRequest:request returningResponse:&response error: NULL];  

    NSString *dateString = nil;  

    if ([response respondsToSelector:@selector(allHeaderFields)]) {  
        dateString = [[response allHeaderFields] objectForKey:@"Date"];  
    }   
    return dateString;

and setting this as Date header in NSMutableURLRequest

[urlRequest setValue:awsDateString forHTTPHeaderField:@"Date"];

This request I am adding to my issue for download

 NKAssetDownload *nkAssetDownload = [nkIssue addAssetWithRequest:urlRequest];

Still the same error !!!! It now more crazier than my last situation.

Anyone ?

Update 2

I was able to make request successfully (even the system clock of my iPad is incorrect) by replacing “GMT” with “+0000” in the date string.

Update 3
Still some requests fail with same error which is weird, but I am assuming it is something the NewsStand Framework is messing up.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T22:57:43+00:00Added an answer on June 7, 2026 at 10:57 pm

    So it is RequestTimeTooSkewed error and the above code to fetch date from S3 server’s head response to add in request does the trick.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to retrieve the original file name from a website while downloading
I want to show a progress bar while downloading a file from the web
I am creating an application wherein I am downloading some data from server. While
I want to download a file from internet and I imagine this should be
I have written a code for downloading a file(blob in database table).I get a
Before downloading a file from ftp server, I want to check it if exist
When downloading a rar file from the internet with the code below, the downloaded
When downloading a file from a Web Site, speeds of many megabytes per second
I am downloading a text-file from example.com/test.txt and I need the contents only during
I am having problems downloading a binary file (video) in my app from the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.