bermi / sauce-connect-launcher

Downloads and launches an instance of Sauce Connect Selenium Proxy https://wiki.saucelabs.com/display/DOCS/Sauce+Connect+Proxy
72 stars 70 forks source link

No documentation for EU customers #141

Open christemple opened 5 years ago

christemple commented 5 years ago

Hi,

We've been battling Saucelabs issues for a few days now since the separation between US and EU accounts.

Some of our services were using SauceConnect CLI tool directly to set up a local tunnel, however we have a few remaining ones that are using this sauce-connect-launcher.

There doesn't seem to be any documentation at all and we can't get it to work, I've had a look through this commit: https://github.com/bermi/sauce-connect-launcher/commit/580e8fa535b522b5862699561bdca50e9a0189dd (which doesn't have any documentation about the possible options for SAUCE_API_HOST in the tests)

Together with the information from here: https://wiki.saucelabs.com/display/DOCS/Sauce+Labs+European+Data+Center+Configuration+Information

And no matter what config option I try I can't seem to get sauce-connect-launcher to work on the EU central account.

Can someone please add documentation for this?

Thanks

brendan-donegan commented 5 years ago

It should be eu-central-1.saucelabs.com

yannickcr commented 5 years ago

Another solution is to pass the x option to override the one set by default:

var sauceConnectLauncher = require('sauce-connect-launcher');

var options = {
    x: 'https://eu-central-1.saucelabs.com/rest/v1',
};

sauceConnectLauncher(options, function (err, sauceConnectProcess) {
  console.log("Started Sauce Connect Process");
  sauceConnectProcess.close(function () {
    console.log("Closed Sauce Connect process");
  });
});