Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support response streaming for Node.js image #200

Open
Zeryther opened this issue Oct 3, 2024 · 0 comments
Open

Support response streaming for Node.js image #200

Zeryther opened this issue Oct 3, 2024 · 0 comments

Comments

@Zeryther
Copy link

Zeryther commented Oct 3, 2024

Hello,

I'm trying to debug a Node.js function that streams a response locally, but it seems the image doesn't support it.

The image I'm using is public.ecr.aws/lambda/nodejs:20.

This invocation doesn't work (response is "404 page not found"):

curl -v -XPOST "http://localhost:9000/2021-11-15/functions/function/response-streaming-invocations" -d '{}'

This invocation works:

curl -v -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{}'

Full cURL output:

*   Trying 127.0.0.1:9000...
* Connected to localhost (127.0.0.1) port 9000 (#0)
> POST /2021-11-15/functions/function/response-streaming-invocations HTTP/1.1
> Host: localhost:9000
> User-Agent: curl/7.81.0
> Accept: */*
> Content-Length: 2
> Content-Type: application/x-www-form-urlencoded
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
< Date: Thu, 03 Oct 2024 07:55:29 GMT
< Content-Length: 19
< 
404 page not found
* Connection #0 to host localhost left intact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant