Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
akosyakov opened this issue Jul 18, 2018 · 1 comment
Closed

Comments

@akosyakov
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants