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

pass client host and port to remote interface #193

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gorangajic
Copy link

when chrome is running on some other port than the default
chromeless was failing silently

(node:93065) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: connect ECONNREFUSED 127.0.0.1:9222
(node:93065) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:93065) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: connect ECONNREFUSED 127.0.0.1:9222

when chrome is running on some other port than default
chromeless was failing silently
@kevin940726
Copy link

kevin940726 commented Aug 15, 2017

I also get this error when using other port than 9222, but I also need to change this line and this line to include port and host to work. Can someone verify this?

@priithaamer
Copy link

I can confirm that without this change, using remote host and port does not work properly, i.e. new Chromeless({..., cdp: {host: '1.2.3.4'}}) throws an error.

However, error is not raised when Chrome is also running on localhost with remote debugging port enabled. So i assume that it does the version check against the local instance but everything else works against remote Chrome instance as expected.

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

Successfully merging this pull request may close these issues.

None yet

3 participants