Skip to content

cannot get debug endpoint metadata with node 8.11 over http2 in docker #21865

@akosyakov

Description

@akosyakov

It used to work with 8.10, but with 8.11 I get the following:

  • to start debugging
docker run --expose 3000 -p 3000:3000 -it --rm --name my-running-script -v "$PWD":/usr/src/app -w /usr/src/app node:8.11.0 node --inspect-brk=0.0.0.0:3000 hello.js
  • with http it works
MacKosyakov-2:hello kosyakov$ /usr/local/Cellar/curl/7.61.0/bin/curl "localhost:3000/json"
[ {
  "description": "node.js instance",
  "devtoolsFrontendUrl": "chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=172.17.0.2:3000/eeab7e7b-1e50-475d-bcd3-a73d3dd98aa7",
  "faviconUrl": "https://nodejs.org/static/favicon.ico",
  "id": "eeab7e7b-1e50-475d-bcd3-a73d3dd98aa7",
  "title": "hello.js",
  "type": "node",
  "url": "file:///usr/src/app/hello.js",
  "webSocketDebuggerUrl": "ws://172.17.0.2:3000/eeab7e7b-1e50-475d-bcd3-a73d3dd98aa7"
} ]
  • with http2 it does not, with 8.10 results as with http
MacKosyakov-2:hello kosyakov$ /usr/local/Cellar/curl/7.61.0/bin/curl --http2 "localhost:3000/json"
WebSockets request was expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions