Closed codekirukkan closed 4 years ago
I ran into this issue and it is specific to using String
, if you use byte[]
a the body it will be fine. It was fixed as part of this commit https://github.com/micronaut-projects/micronaut-aws/commit/9c7bb57470a8a4d1ea6210403fcd73cf22ee3e8d
You should probably try the released 2.1.0.RC1
version of the aws
modules which includes the fix
Thanks for reporting an issue, please review the task list below before submitting the issue. Your issue report will be closed if the issue is incomplete and the below tasks not completed.
NOTE: If you are unsure about something and the issue is more of a question a better place to ask questions is on Stack Overflow (https://stackoverflow.com/tags/micronaut) or Gitter (https://gitter.im/micronautfw/). DO NOT use the issue tracker to ask questions.
Task List
Steps to Reproduce
Expected Behaviour
Should respond 200 OK with the given data, However only GET request is working. POST is failing with error. Tried everything from using JSON POJO as well with correct media type at both the request and handler end. However none of the @Body options are working.
Actual Behaviour
Controller code
`@Controller public class PingController {
} `
Exception in AWS logs
io.micronaut.web.router.exceptions.UnsatisfiedBodyRouteException: Required Body [text] not specified at io.micronaut.web.router.exceptions.UnsatisfiedRouteException.create(UnsatisfiedRouteException.java:58) ... .... io.micronaut.function.aws.proxy.MicronautLambdaContainerHandler.lambda$handleRequest$8(MicronautLambdaContainerHandler.java:329)
Environment Information
Example Application