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

createBucket request fails with 409 (conflict), but doesn't throw #3

Closed
mxcl opened this issue Sep 13, 2019 · 3 comments
Closed

createBucket request fails with 409 (conflict), but doesn't throw #3

mxcl opened this issue Sep 13, 2019 · 3 comments

Comments

@mxcl
Copy link

mxcl commented Sep 13, 2019

When making a create bucket request for an already existing bucket the future succeeds but the operation in fact failed.

Stepping through the framework code in a debugger the first (or second) HTTP request is a 409, but the future is not rejected.

@mxcl
Copy link
Author

mxcl commented Sep 13, 2019

let createBucketRequest = S3.CreateBucketRequest(bucket: bucket)
return try s3.createBucket(createBucketRequest)

@adam-fowler
Copy link
Contributor

@mxcl Code in here was so old, surprised it worked at all. I've just updated it with latest from aws-sdk-swift if you want to give it another go.

@adam-fowler
Copy link
Contributor

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants