Skip to content

deno_docker example fails with 'TypeError: Deno.writeAll is not a function' #424

@und-miller

Description

@und-miller

Copying the code verbatim from the docker example does not work.

Can be reproduced by:

  1. Copy the code from https://github.com/denoland/deno_docker/tree/main/example
  2. Run docker build -t app .
  3. Run docker run -it --init -p 1993:1993 app
  4. From another terminal run curl http://localhost:1993
  5. Fails with the error below
error: Uncaught (in promise) TypeError: Deno.writeAll is not a function
      await Deno.writeAll(
                 ^
    at BufWriter.flush (https://deno.land/[email protected]/io/bufio.ts:468:18)
    at writeResponse (https://deno.land/[email protected]/http/_io.ts:288:16)
    at eventLoopTick (ext:core/01_core.js:175:7)
    at async ServerRequest.respond (https://deno.land/[email protected]/http/server.ts:84:7)

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