denoland / deno_docker

Latest dockerfiles and images for Deno - alpine, centos, debian, ubuntu
https://hub.docker.com/r/denoland/deno
MIT License
927 stars 104 forks source link

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

Open und-miller opened 1 month ago

und-miller commented 1 month ago

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/std@0.77.0/io/bufio.ts:468:18)
    at writeResponse (https://deno.land/std@0.77.0/http/_io.ts:288:16)
    at eventLoopTick (ext:core/01_core.js:175:7)
    at async ServerRequest.respond (https://deno.land/std@0.77.0/http/server.ts:84:7)
dionjwa commented 1 month ago

Also this fails the same way:

deno run -A --unstable https://deno.land/x/puppeteer@16.2.0/install.ts