8

I run node cli node --inspect start/server

Which start/server is a koa2 webserver.

and then I got:

Debugger listening on ws://127.0.0.1:9229/3323c837-cc74-4897-af12-8fccc9d709c1

I got bellow in chrome when I input ws url:

ws://127.0.0.1:9229/3323c837-cc74-4897-af12-8fccc9d709c1:1 GET ws://127.0.0.1:9229/3323c837-cc74-4897-af12-8fccc9d709c1 net::ERR_DISALLOWED_URL_SCHEME

How can I solve the net::ERR_DISALLOWED_URL_SCHEME?

funie200
  • 3,688
  • 5
  • 21
  • 34
pingfengafei
  • 829
  • 2
  • 8
  • 12
  • 2
    Possible duplicate of [How to use Node 8 inspector with Chrome?](https://stackoverflow.com/questions/44750727/how-to-use-node-8-inspector-with-chrome) – stealththeninja Apr 03 '19 at 05:25

3 Answers3

2

if you are using Chrome Browser:

  1. enter chrome://flags/ in your browser url
  2. enable #allow-insecure-localhost
  3. restart browser

that worked for me!

MT_Shikomba
  • 129
  • 1
  • 6
  • I just did this and it failed at my end... The Network Inspector shows the WSS connection with HTTP 101 status. – RobMac Aug 25 '20 at 18:51
2

Just type in Chrome about:inspect then Open dedicated DevTools for Node

brixdan
  • 79
  • 3
-1

If you are using websocket like webRTC, then check the headset/sound settings. That resolved my issue