You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are calling java lambda from api gateway and in cloudwatch logs i can see internal server error is coming,
After going through the logs and support team i got to know that AwsProxyResponse class is generating response JSON which is rejected by API gateway with Malformed error
Json generated is using field name base64Encoded instead of isBase64Encoded
The text was updated successfully, but these errors were encountered:
Describe how you would expect the application to behave
Actual behavior
Describe what you are seeing instead
Steps to reproduce
Provide code samples we can use to reproduce the issue as part of our integration tests. If there is a public repository for the misbehaving application link to it here
Full log output
Paste the full log output from the Lambda function's CloudWatch logs
Scenario - When we are trying to invoke lambda with proxy integration from apigateway, apigateway is throwing malformed error
Expected Behaviour - as part of lambda response, api gatway is expecting isBase64Encoded value but from lambda response we are getting only base64Encoded key
Actual Behaviour - isBase64Encoded should come ans statusDescriptions also not required as per api gateway
Stepa to reproduce -
Create a api gatway
Call lambda ( rerurn type should be AwsProxyResponse)
Invoke Lambda from ApIGAteway
We are calling java lambda from api gateway and in cloudwatch logs i can see internal server error is coming,
After going through the logs and support team i got to know that AwsProxyResponse class is generating response JSON which is rejected by API gateway with Malformed error
Json generated is using field name base64Encoded instead of isBase64Encoded
The text was updated successfully, but these errors were encountered: