aws / aws/aws-lambda-runtime-interface-emulator
curl: (52) Empty reply from server
- Ngôn ngữ chính
- Go
- Star
- 1.1k
- Fork
- 118
- Merge trung bình
- 42 phút
- Pull request đã merge (30 ngày)
- 2
Mô tả
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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với hướng dẫn Usage của Lambda Go gallery và tái hiện yêu cầu curl đối với public.ecr.aws/lambda/go:1 và public.ecr.aws/lambda/provided:al2. So sánh hành vi với workaround trong aws/aws-lambda-runtime-interface-emulator#26; hoàn thành khi xác định được lý do handler cục bộ trả về phản hồi rỗng và image hoặc hướng dẫn bị ảnh hưởng được ghi lại hoặc sửa chữa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- docker, go
- Lĩnh vực
- backend, cloud
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100