Getting 302 Found when i invoke from alb but from api gateway its returning response properly

Abierto
#423 5 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
aws, java, spring-boot
Área
api, backend, cloud

Línea de trabajo

Empieza comparando las configuraciones de API Gateway y ALB para la aplicación Spring Boot 2.2.1 descrita en el issue, centrándote en la solicitud POST registrada y en su respuesta 302 Location. El issue no indica archivos de origen ni pruebas y no puede proporcionar pasos de reproducción; se considera terminado cuando se haya identificado por qué ALB devuelve la redirección y se consiga que devuelva la misma respuesta que API Gateway.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

To help us debug your issue fill in the basic information below using the options provided

Serverless Java Container version: 1.6

Implementations: Spring Boot 2

Framework version: SpringBoot 2.2.1.RELEASE

Frontend service: ALB

Deployment method: Console

Scenario

currently spring boot app running in eks need to to deploy to lambda as containeter, image, the image is deployed suceessfully, when i invoke from api gateway test console, getting exepected results, but when i configure alb and lambda as the target, getting 302 Found, using custom doamin name

Expected behavior

It has to return the same response how api gateway returns

Actual behavior

302 Found

Steps to reproduce

as its official can't provide

Full log output

2021-08-30 10:28:58.413 INFO 6 --- [ main] c.a.s.p.internal.LambdaContainerHandler : 127.0.0.1 null- null [30/08/2021:10:28:58Z] "POST /dataloader/xxx/start/job null" 302 - "-" "PostmanRuntime/7.28.4" combined

Server: awselb/2.0
Date: Mon, 30 Aug 2021 10:28:58 GMT
Content-Type: application/octet-stream
Content-Length: 0
Location: https://xxxx/dataloader/xxx/start/job?synchronous=true
Connection: keep-alive

logs
Lenguaje dominante
Java
Estrellas
1.6k
Forks
575
Merge medio
1 d 15 h
PR fusionados (30 d)
12

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de aws/serverless-java-container

Todos los issues de aws/serverless-java-container

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.