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

Update major version of https-proxy-agent #69

Open
tkandr opened this issue May 27, 2020 · 1 comment
Open

Update major version of https-proxy-agent #69

tkandr opened this issue May 27, 2020 · 1 comment

Comments

@tkandr
Copy link

tkandr commented May 27, 2020

Unfortunately, https-proxy-agent@2 depends on node-agent-base@4, which changes the functionality of core https.request and drops support of https.request(url[, options][, callback]) signature. Because of this, some other modules, which are using https.request(url[, options][, callback]) are not working correctly (In my case, It's got).

@nicolas-sainsburys
Copy link

This issue is impacting the usage of webdriverIO v6 with Browserstack tunnel.
The session request are sent by got library using a proxy over https. The service hostname get changed from hub-cloud.browserstack.com to 127.0.0.1 due to node-agent-base@4 override.
Forcing the npm package resolution to "https-proxy-agent": "^5.0.0" fix the issue.
Could you please upgrade your project to use a safe version of https-proxy-agent?
[0-2] 2020-09-15T22:41:35.109Z ERROR webdriver: RequestError: connect ECONNREFUSED 127.0.0.1:443 at ClientRequest.<anonymous> (.../node_modules/got/dist/source/core/index.js:940:25) at Object.onceWrapper (events.js:300:26) at ClientRequest.emit (events.js:215:7) at ClientRequest.EventEmitter.emit (domain.js:475:20) at ClientRequest.origin.emit (.../bdd/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20) at TLSSocket.socketErrorListener (_http_client.js:406:9) at TLSSocket.emit (events.js:210:5) at TLSSocket.EventEmitter.emit (domain.js:475:20) at emitErrorNT (internal/streams/destroy.js:92:8) at emitErrorAndCloseNT (internal/streams/destroy.js:60:3) at processTicksAndRejections (internal/process/task_queues.js:80:21) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1129:14) 2020-09-15T22:41:35.110Z ERROR @wdio/runner: Error: Failed to create session. Unable to connect to "https://<user>:<key>@hub-cloud.browserstack.com:443/wd/hub", make sure browser driver is running on that address. If you use services like chromedriver see initialiseServices logs above or in wdio.log file as the service might had problems to start the driver. at startWebDriverSession (.../node_modules/webdriver/build/utils.js:45:11) at processTicksAndRejections (internal/process/task_queues.js:93:5)

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

3 participants
@tkandr @nicolas-sainsburys and others