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

S3 GetBucketLogging xml response #228

Closed
nhibberd opened this issue Sep 24, 2015 · 2 comments · Fixed by #237
Closed

S3 GetBucketLogging xml response #228

nhibberd opened this issue Sep 24, 2015 · 2 comments · Fixed by #237
Assignees

Comments

@nhibberd
Copy link
Collaborator

getBucketLocation always returns Nothing. Looks like it is expecting a nested xml object but it only exists at the top level?

Example code

getLocation' :: BucketName -> AWS (Maybe Region)
getLocation' n = do
  r <- send $ getBucketLocation  n
  pure $ r ^. grsLocationConstraint

Raw response

[Client Response] {
  status  = 200 OK
  ...
}
[Raw Response Body] {
<?xml version="1.0" encoding="UTF-8"?>
<LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/">ap-southeast-2</LocationConstraint>
}
@brendanhay brendanhay self-assigned this Sep 24, 2015
@brendanhay
Copy link
Owner

It'll be a few hours before I can look into this, I'll keep you posted.

@brendanhay
Copy link
Owner

By a few hours, I mean 14 days.

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

Successfully merging a pull request may close this issue.

2 participants