Swift-Amazon-S3-Uploading-Tutorial icon indicating copy to clipboard operation
Swift-Amazon-S3-Uploading-Tutorial copied to clipboard

Getting the below error. can you please help me to fix this.

Open Gopitech21 opened this issue 6 years ago • 5 comments

AmazonS3Upload[7318:370039] Returning ENOTCONN because protocol has not yet been set up

AmazonS3Upload[7318:370039] Task <7E4BB0B5-4C03-4551-B9FD-06A314F6CE85>.<4> HTTP load failed (error code: -1005 [1:57])

Gopitech21 avatar Oct 04 '17 07:10 Gopitech21

Returning ENOTCONN because protocol has not yet been set up The operation couldn’t be completed. (com.amazonaws.AWSS3ErrorDomain error 0.) facing the same issue, reply soon

Sabihhida avatar Oct 04 '17 07:10 Sabihhida

I have same issue since morning, plz suggest a solution.

Muneeb93902 avatar Oct 04 '17 08:10 Muneeb93902

Could someone please to share AWS keys to test it?

maximbilan avatar Oct 14 '17 06:10 maximbilan

Yes .. I got same issues ... Returning ENOTCONN because protocol has not yet been set up

Task <CC4C0EEC-2E50-444F-8688-1CFC14767B74>.<1> HTTP load failed (error code: -1005 [1:57])

smkdoss73 avatar Nov 29 '17 07:11 smkdoss73

I solved the error. It has to do with the region of the S3. You have to set the correct region in order for it to work. Currently, it's hardcoded to USEast1:

let configuration = AWSServiceConfiguration(region:AWSRegionType.USEast1, credentialsProvider:credentialsProvider)

So I changed it to the region of my S3 bucket:

let region = AWSRegionType.USWest1
// ...
let configuration = AWSServiceConfiguration(region: region, credentialsProvider:credentialsProvider)

Also: never share your AWS keys.

aluramh avatar Jan 11 '19 18:01 aluramh