Spring Boot 2 Application with Okta Login and AWS Lambda

Hello,

We have an application developed with Spring Boot 2, and we are using OKTA OAUTH2. The application is ready, and we have deployed it in localhost and EC2, and works fine, but we are trying to deploy it in AWS Lambda, and we start with problems, when our app call okta {domain}/oauth2/authorization/okta a 500 error is raised, we check logs inside AWS and the message is AwsLambdaServletContainerHandler : Could not forward request and we think that problem is with AWS API Gateway or other thing in our Lambda config.

I attach screenshots:

We have tried a lot of things without success, Could you help us?

A lot of thanks,
Jonatan.

Could you try changing you login redirect url in your app to the one you hit when attempting to authorise to see if that works?