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

error messages have "Message" field, not "message" #9

Closed
glasserc opened this issue Dec 25, 2014 · 1 comment
Closed

error messages have "Message" field, not "message" #9

glasserc opened this issue Dec 25, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@glasserc
Copy link

This means that the kinesisErrorMessage field is blank.

I'm not sure if this is true of all errors -- I assume the current code must have worked at some point -- but I'm definitely seeing a Message field for AccessDeniedException errors.

@glasserc
Copy link
Author

I now believe this is only true for AccessDeniedException errors. Here's the JSON error that got dumped to the screen by https://github.com/alephcloud/hs-aws-kinesis/blob/master/src/Aws/Kinesis/Core.hs#L313:

"{"__type":"AccessDeniedException","Message":"User: arn:aws:iam::375941813383:user/kinesis-publish-stage is not authorized to perform: kinesis:PutRecord on resource: arn:aws:kinesis:us-east-1:375941813383:stream/models.data.Twitter.stage"}"

@larskuhtz larskuhtz added this to the 0.1.3 milestone Jan 28, 2015
@larskuhtz larskuhtz self-assigned this Jan 28, 2015
@larskuhtz larskuhtz added the bug label Jan 28, 2015
larskuhtz pushed a commit that referenced this issue Jan 28, 2015
…romJSON instance of KinesisErrorResponse
@larskuhtz larskuhtz mentioned this issue Jan 28, 2015
larskuhtz added a commit that referenced this issue Jan 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants