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

installed but not working.. #12

Open
Zibri opened this issue Jul 13, 2018 · 9 comments
Open

installed but not working.. #12

Zibri opened this issue Jul 13, 2018 · 9 comments

Comments

@Zibri
Copy link

Zibri commented Jul 13, 2018

When I go on chrome://inspect

in node I see this error:
ERR! devtools-backend:Proxy Internal request failed http://192.168.42.11:9222/json/version Error: connect EMFILE 192.168.42.11:9222 - Local (undefined:undefined)

(same for localhost)
and if a manually go to http://192.168.42.11:9222/json/version

I see:
EMFILE 192.168.42.11:9222 - Local (undefined:undefined)

@Zibri
Copy link
Author

Zibri commented Jul 13, 2018

and also
ERR! devtools-backend:Proxy Internal request failed http://192.168.42.11:9222/json/version Error: socket hang up
ERR! devtools-backend:Proxy Internal request failed http://192.168.42.11:9222/json/version Error: connect EMFILE 192.168.42.11:9222 - Local (undefined:undefined)

@christian-bromann
Copy link
Owner

Can you describe more what your setup is?

@Zibri
Copy link
Author

Zibri commented Jul 13, 2018

Ubuntu 17.10 I just did what's written in the readme... but it does not work and I don't know why.
I badly need this to remote debug a smart tv application..

@Zibri
Copy link
Author

Zibri commented Jul 13, 2018

$ node -v
v8.11.3
$ uname -a
Linux zibrixnb 4.13.0-45-generic #50-Ubuntu SMP Wed May 30 08:23:18 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.10
DISTRIB_CODENAME=artful
DISTRIB_DESCRIPTION="Ubuntu 17.10"

@Zibri
Copy link
Author

Zibri commented Jul 13, 2018

if you need anything else to debug.. just ask

@christian-bromann
Copy link
Owner

Can you provide any logs from the proxy? Also check out my talk on this project.

@Zibri
Copy link
Author

Zibri commented Jul 15, 2018

I explain... I wish to do what I usually do with "weinre" but using chrome devtools.
With weinre, I just add a <script src=....> tag to any html page and then I can debug the remote device accessing the page using a browser on my local machine.

If I undesrtood, devtools-backend should do the same... but I can't get it to work on Ubuntu 17.10

Could you tell me a step by step so I check what I do wrong or what is wrong in my system?

@ZhangKejun
Copy link

When I go on chrome://inspect

in node I see this error:
ERR! devtools-backend:Proxy Internal request failed http://192.168.42.11:9222/json/version Error: connect EMFILE 192.168.42.11:9222 - Local (undefined:undefined)

(same for localhost)
and if a manually go to http://192.168.42.11:9222/json/version

I see:
EMFILE 192.168.42.11:9222 - Local (undefined:undefined)

Have you solved the problem? Can you share the solution?

@leMaik
Copy link

leMaik commented Feb 1, 2022

For future users (including myself): The issue is that the server leaks sockets, EMFILE is caused by too many files being opened. The solution is to add a handler for every path (*) that just does req.status(404).end() after registering the other paths in lib/index.js. This resolves the issue and makes the server work.

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

4 participants