-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Lambda Invoke with iInvocationType Event tries to parse a non-existing response #394
Comments
@brendanhay I was also hit by this issue. I guess there might not be an easy fix if the AWS's documentation is lacking. Do you know any workaround for that? I was able to run it by creating a newtype wrapper around |
Looking at the Lambda service definition for Invoke - my interpretation is that the response data structure will be populated from the status code, headers, and the empty body - the The parser attempts to parse the body into
🤦♂️ Fixable in the library proper - an empty response should result in a |
I added a test for the updated generation logic which will be released as part of 1.6.0:
Versus:
This is a breaking change as the response body will no longer be parsed into a |
This produces the following logs:
Note that the response body is empty, as specified in http://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html. Amazonka then throws:
The text was updated successfully, but these errors were encountered: