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

promiseChainRemote does not allow https #618

Closed
roelandvanbatenburg opened this issue Feb 18, 2020 · 1 comment
Closed

promiseChainRemote does not allow https #618

roelandvanbatenburg opened this issue Feb 18, 2020 · 1 comment

Comments

@roelandvanbatenburg
Copy link

We are using kobiton to test our app. When upgrading wd from 1.11.4 to 1.12.1 we get the following error:

 FAIL  e2e/kobitonAndroid.test.e2e.ts
  ● Test suite failed to run

    TypeError: [quit()] Protocol "https:" not supported. Expected "http:"

      at Request.start (node_modules/request/request.js:751:32)
      at Request.end (node_modules/request/request.js:1511:10)
      at end (node_modules/request/request.js:564:14)
      at node_modules/request/request.js:578:7
      at Immediate._onImmediate (node_modules/@jest/fake-timers/build/jestFakeTimers.js:516:20)

This is caused by how we call promiseChainRemote:

const kobitonServerConfig = {
  protocol: 'https',
  host: 'api.kobiton.com',
  auth: `${username}:${apiKey}`,
};

const driver = wd.promiseChainRemote(kobitonServerConfig);

I'm not sure where to look for a fix. If you need any additional information I'm happy to provide it. Thanks!

@roelandvanbatenburg
Copy link
Author

Just noticed this is picked up in #617

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

1 participant