aws / aws/aws-lambda-runtime-interface-emulator
Unexpected empty response when lambda function's process terminates
- Langage dominant
- Go
- Étoiles
- 1.1k
- Forks
- 118
- Merge moyen
- 42 min
- PR mergées (30 j)
- 2
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Start by tracing how the RIE handles a Lambda function process terminating and how it constructs the response. Compare that path with the production example in the issue; done means the response is non-empty and includes the process exit status in the shown error format.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- go
- Domaine
- backend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 45/100