-
Notifications
You must be signed in to change notification settings - Fork 549
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
AwsProxyResponse class is generating response JSON which is rejected by API gateway with Malformed error #884
Comments
Hi @Chiranjibeem, To help us debug your issue fill in the basic information below using the options provided Serverless Java Container version: Implementations: Framework version: Frontend service: Deployment method: ScenarioDescribe what you are trying to accomplish Expected behaviorDescribe how you would expect the application to behave Actual behaviorDescribe what you are seeing instead Steps to reproduceProvide 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 outputPaste the full log output from the Lambda function's CloudWatch logs
|
Serverless Java Container version: 2.0.0-M2 Implementations: Spring Boot Framework version: SpringBoot 3.2.0 Frontend service: AWS API Gateway Deployment method: Serverless Framework 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 - |
Can you please try reproducing it using our sample https://github.com/aws/serverless-java-container/tree/main/samples/springboot3/pet-store? We have multiple unittests in place that cover it so I can only imagine it's related to specific configurations inside your application. |
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: