Skip to content

crash with rust runtime: "Cannot read property 'pipe' of null"Β #13

@dsilvasc

Description

@dsilvasc

πŸ› Bug description

On a project with runtime: rust, hitting the localhost server crashes:

$ serverless localhost
Serverless: Starting server...
Serverless: Listening on port 3000...
Serverless: ❯ Function routes
Serverless: * world
Serverless:     get http://localhost:3000/
Serverless: Docker image not present
Serverless: Pulling lambci/lambda:rust image...

  Type Error ---------------------------------------------

  TypeError: Cannot read property 'pipe' of null
      at Modem.followProgress (node_modules/docker-modem/lib/modem.js:319:10)
      at node_modules/serverless-localhost/src/docker.ts:36:20
      at node_modules/dockerode/lib/docker.js:119:7
      at node_modules/docker-modem/lib/modem.js:265:7
      at IncomingMessage.<anonymous> (node_modules/docker-modem/lib/modem.js:284:9)
      at IncomingMessage.emit (events.js:215:7)
      at IncomingMessage.EventEmitter.emit (domain.js:475:20)
      at endReadableNT (_stream_readable.js:1184:12)
      at processTicksAndRejections (internal/process/task_queues.js:80:21)

I think that's because the image lambci/lambda:rust does not exist on docker hub. Should that be lambci/lambda:provided?

The exception itself seems to come from apocas/docker-modem#93

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions