aws / aws/aws-lambda-runtime-interface-emulator
curl: (52) Empty reply from server
- Vorherrschende Sprache
- Go
- Sterne
- 1.1k
- Forks
- 118
- Ø Merge
- 42 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
I recently ran into an issue trying to test a Lambda function locally with the provided base images. My handler is written in Go. Testing with both `public.ecr.aws/lambda/go:1` and `public.ecr.aws/lambda/provided:al2` gives the same error when attempting to curl the handler locally.
Here are the directions I was attempting to follow to test my function locally. https://gallery.ecr.aws/lambda/go (the Usage tab)
I ended up here after finding this workaround: https://github.com/aws/aws-lambda-runtime-interface-emulator/issues/26. It's my understanding that these steps shouldn't be needed when working with one of the provided Docker images. If there is a better repository to file this issue please let me know. Thanks.
Beitragsleitfaden
Rechercherichtung
Beginne mit den Usage-Anweisungen der Lambda Go gallery und führe die curl-Anfrage gegen public.ecr.aws/lambda/go:1 und public.ecr.aws/lambda/provided:al2 erneut aus. Vergleiche das Verhalten mit dem Workaround in aws/aws-lambda-runtime-interface-emulator#26; abgeschlossen ist die Aufgabe, wenn identifiziert wurde, warum der lokale Handler eine leere Antwort zurückgibt, und das betroffene Image oder die Anweisungen dokumentiert oder korrigiert wurden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- docker, go
- Bereich
- backend, cloud
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100