Skip to content

Support response streaming for Node.js image #200

Open
@Zeryther

Description

@Zeryther

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions