aws / aws/aws-lambda-runtime-interface-emulator
Unexpected empty response when lambda function's process terminates
- Lenguaje dominante
- Go
- Estrellas
- 1.1k
- Forks
- 118
- Merge medio
- 42 min
- PR fusionados (30 d)
- 2
Descripción
The RIE behaves differently from the "production" AWS Lambda environment when a Lambda function's process terminates.
Concretely, the production environment responds with a message that contains the process's exit status, e.g.:
```json
{
"errorType": "Runtime.ExitError",
"errorMessage": "RequestId: 7f399cc8-8841-fefa-0af7-ba803f3f21e3 Error: Runtime exited with error: exit status 42"
}
```
The Lambda RIE however does not send such a response. Instead, when the Lambda function's process terminates, the RIE only responds with an _empty_ response body, which does not resemble the behavior of the production environment.
Guía de contribución
Línea de trabajo
Empieza rastreando cómo el RIE gestiona la terminación de un proceso de función Lambda y cómo construye la respuesta. Compara ese flujo con el ejemplo de producción del issue; se considera terminado cuando la respuesta no está vacía e incluye el estado de salida del proceso en el formato de error mostrado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- go
- Área
- backend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 45/100