Lambda Function URL's "Internal Server Error" on any status other than 200

0

I've been using Function URL's on a Lambda Function and have no issues if sending a 200 response, however the moment I use anything other than a 200 response, I get a 502 Internal Server Error on the calling platform. I've tested across different status codes and its the same. On a 200, all required headers and the body are returned fine. The same code returns the response regardless of the status code so that is clearly working but for some reason the function URL handler doesn't like it. I get no errors on the invocation record within CloudWatch either.

Any ideas why? The documentation (https://docs.amazonaws.cn/en_us/lambda/latest/dg/urls-invocation.html) suggests you can use codes other than 200.

preguntada hace 2 años89 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas