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
SpringBootApiGatewayRequestHandler - AWS HTTP GET method support #189
Comments
So, you're saying that because of GET you don't have a body. If so what would we use to create Publisher. |
The
Just an idea to consider... |
Thanks @artembilan , and yes indeed we need to do something there, yet I am still waiting for @iwejay to communicate what was he trying to accomplish. |
Thank you @olegz and @artembilan I am learning AWS Lambda used along with serverless framework. MemberFunctionApplication contains 3 function beans exposed as endpoints over HTTP GET (serverless.yml). 'officers' and 'members' functions are same thing - just tried Publisher and Function with void input.
Thanks to @artembilan again, got it working as per his suggestion, i tried a simple version of passing the query param to Lambda. Please see AwsApiGatewayGetRequestHandler and MemberFunctionApplication's member method. Kindly guide and let me know if any further details required. |
Link to original article about Spring Cloud Functions + AWS + Serverless |
I've hit the same issue and looked at the upcoming 2.0.0.M3 which appears to have the same bug. Using API Gateway with HTTP GET which results in a null body and ends up with a NPE when trying to be deserialized. I believe @iwejay has provided enough info but I can too if needed, also thanks to @artembilan as well as @iwejay because that workaround worked for me too. |
Given the age of this issue and the amount of new features and improvements that went into AWS adapter I am going to close this issue, but please feel free to raise a new one based on our current support. |
When using SpringBootApiGatewayRequestHandler with AWS - HTTP GET method throws exception "Cannot convert event".
This line fails as request body is null.
Object body = deserializeBody(event.getBody());
The text was updated successfully, but these errors were encountered: