Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

localhost refused to connect #755

Closed
catmando opened this issue Mar 26, 2016 · 9 comments
Closed

localhost refused to connect #755

catmando opened this issue Mar 26, 2016 · 9 comments

Comments

@catmando
Copy link

I am running on mac osx, and when I try calling page.driver.debug, a chrome tab comes up pointing to localhost:9664, but chrome says "localhost refused to connect"

Any help would be much appreciated.

@ramunasm
Copy link

Same issue here, I'm on Windows.

@route
Copy link
Contributor

route commented Apr 15, 2016

What version do you use guys?

@ramunasm
Copy link

I'm using 1.9.0

@tansaku
Copy link

tansaku commented Apr 15, 2016

I have the same issue - on OSX el capitan and poltergeist 1.9.0

http://localhost:9664/ can't be reached

@twalpole
Copy link
Contributor

What version of chrome? what version of osx? what version of phantomjs? what do you have :inspector set to your poltergeist configuration?

@catmando
Copy link
Author

FYI... sorry for leaving this issue open, but I tracked this down to the fact that I am using Opal (ruby to javascript transpiler) which breaks chromes poltergeist driver. The reason is that Opal adds functions to the array prototype, which chrome dislikes, so any code that you have that plays around with built in javascript types could be causing this issue (or you have a different issue completely.)

@twalpole
Copy link
Contributor

Closing this since from @catmando description it sounds like it was phantomjs issue with code produced by Opal - for anyone else still having this issue, and not running code that is modfying the array prototype -- please check which interface on your machine has port 9664 listening and whether or not that interface is what localhost resolves to.

@tansaku
Copy link

tansaku commented Sep 20, 2017

@twalpole I just updated to poltergeist 1.16 and I'm still having this issue on OSX 10.12.6 - I don't have Opal, but I just removed a puffing_billy proxy and it started working ...

@mjsommer
Copy link

mjsommer commented Oct 6, 2017

@twalpole, I am having a similar issue, and for what its worth, a work around. Perhaps this will help improve the code.

Issue: remote-debugger-port=9664, but getting "This webpage is not available" on https://localhost:9664/

Workaround: Instead of waiting for https://localhost:9664/ to resolve, go directly to http://127.0.0.1:9664//webkit/inspector/inspector.html?page=2

Setup:
phantomjs verions 2.1.1
Ubuntu 14.04.3 LTS

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants