Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wifi connected, but without internet. Won't use mobile data. #4947

Closed
camhart opened this issue Sep 12, 2023 · 1 comment
Closed

wifi connected, but without internet. Won't use mobile data. #4947

camhart opened this issue Sep 12, 2023 · 1 comment
Labels
closing soon pending-community-response Issue is pending response from the issue requestor s3 Issues related to S3

Comments

@camhart
Copy link

camhart commented Sep 12, 2023

Describe the bug
I'm trying to upload files via mobile data using AWSS3TransferUtility while the device has a wifi connection that doesn't have access to the internet. I am setting AllowsCellularAccess to yes/true in the AWSServiceConfiguration, however changing that value doesn't appear to make a difference.

To Reproduce

  1. Connect to wifi network that doesn't have internet
  2. Make sure you still have a mobile connection
  3. Try to upload using multi-part upload

Observed Behavior

Error Domain=NMSURLErrorDomain Code=-1009 \"The Internet connection appears to be offline.\"

Expected Behavior
The upload should work via mobile data.

Environment(please complete the following information):

  • SDK Version: latest as of 9/12/2023, not sure how to identify
  • Dependency Manager: coacoapods
  • Swift Version : Objective C
  • Xcode Version: 14.3.1

Device Information (please complete the following information):

  • Device: iphone se 2020
  • iOS Version: 16.6
@ruisebas ruisebas added pending-triage Issue is pending triage s3 Issues related to S3 and removed pending-triage Issue is pending triage labels Sep 13, 2023
@lawmicha
Copy link
Contributor

Hi @camhart,

I can see in the initializer code for TransferUtility, the configuration passed to the NSURLSEssion contains allowsCellularAccess property, set from the AWSServiceConfiguration (code). According to https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1409406-allowscellularaccess the value is True by default, so you wouldn't even need to be setting it.

Are you able to provide additional details such as how you are initializing TransferUtility and more logs related to the entire execution of the multi-part upload API call?

@ruisebas ruisebas added the pending-community-response Issue is pending response from the issue requestor label Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closing soon pending-community-response Issue is pending response from the issue requestor s3 Issues related to S3
Projects
None yet
Development

No branches or pull requests

5 participants