Closed Shiva-789 closed 2 years ago
Hi, with the provided elements it is hard to tell what happen. There are maybe missing hints that ends up to this difference. You can maybe use the tracing agent on the JVM to generate and identify the missing hints and then reuse them on native side, see related documented.
Hello, Sure @sdeleuze. Removed logicfrom function and return string as a lambda response for this also response is wrapped as above. Attaching lambda function
Hi Team,
Created aws java authorizer to validate the incoming token and generate Iampolicy response. With jar lambda is working as expected and generating below reponse.
When we converted same lambda to native image the response is wrapped as APIGatewayProxyResponseEvent object. Below is the response we got from api gateway logs.
The policy document is set as part of APIGatewayProxyResponseEvent body where my return type from handler is a pojo. [ tried sending stringified json directly from handler but observed same response.]
Please any input/suggestion will be helpful. Thanks in advance.