# Opening test url times out over Sauce Connect

**URL:** <https://travis-ci.community/t/opening-test-url-times-out-over-sauce-connect/9824>\
**Category:** Integrations\
**Created:** [September 4, 2020, 4:15pm UTC](https://travis-ci.community/t/opening-test-url-times-out-over-sauce-connect/9824 "2020-09-04T16:15:44Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![robwalch](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/robwalch/32/5141_2.png) [@robwalch](https://travis-ci.community/u/robwalch)\
**Post date:** [September 4, 2020, 4:15pm UTC](https://travis-ci.community/t/opening-test-url-times-out-over-sauce-connect/9824/1 "2020-09-04T16:15:44Z")

</div>

Functional tests for my open-source project that run on Sauce Labs have been failing since Aug 28.

I see that the browser is being sent a command to open the test url which is hosted in the CI environment. It’s expected to open it on localhost:8000 over sauce-connect. The attempt times out. I’ve confirmed that that old commits where this job passed, now fail when rerun, timing out for the same reason.

Support at Sauce Labs has looked at it but hasn’t offered much insight yet. I’m hoping someone here might be able to shed some light.

Here’s where the job has been failing. First test to run times out attempting to open the test url:  
[https://travis-ci.org/github/video-dev/hls.js/jobs/723642553#L1954](https://travis-ci.org/github/video-dev/hls.js/jobs/723642553#L1954)

Sauce Connect seems to be setting up ok  
[https://travis-ci.org/github/video-dev/hls.js/jobs/723642553#L261](https://travis-ci.org/github/video-dev/hls.js/jobs/723642553#L261)

Here’s the logs from a week ago for the last job to pass (debug is not enabled in this one).  
[https://travis-ci.org/github/video-dev/hls.js/jobs/721389732](https://travis-ci.org/github/video-dev/hls.js/jobs/721389732)

We’ve tested doing a GET request from travis to the test server and it returns a 200 status, so we’re just at a loss as to how to troubleshoot the request over sauce-connect. Thanks in advance for any help or tips!

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [September 4, 2020, 5:24pm UTC](https://travis-ci.community/t/opening-test-url-times-out-over-sauce-connect/9824/2 "2020-09-04T17:24:26Z")

</div>

As I can see from [https://app.saucelabs.com/tests/f61089848c884df6a77fd5454b5abe48#1](https://app.saucelabs.com/tests/f61089848c884df6a77fd5454b5abe48#1), their browser tries to open `data:,` – which, of course, it can’t.

I’d ask Sauce support about where that erroneous URL comes from so you can track it to its origin.

---

<div class="post-metadata">

**Author:** ![nickcmaynard](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/nickcmaynard/32/5225_2.png) [@nickcmaynard](https://travis-ci.community/u/nickcmaynard)\
**Post date:** [September 6, 2020, 12:55pm UTC](https://travis-ci.community/t/opening-test-url-times-out-over-sauce-connect/9824/3 "2020-09-06T12:55:27Z")

</div>

Also seeing this for [https://travis-ci.com/github/nickcmaynard/jsonschemalint](https://travis-ci.com/github/nickcmaynard/jsonschemalint), failing since 27th August. Seems to be attempting to connect to “localhost” and hanging…

---

<div class="post-metadata">

**Author:** ![OndraM](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/ondram/32/3445_2.png) [@OndraM](https://travis-ci.community/u/OndraM)\
**Post date:** [September 9, 2020, 12:02pm UTC](https://travis-ci.community/t/opening-test-url-times-out-over-sauce-connect/9824/4 "2020-09-09T12:02:28Z")

</div>

We are having the same issue, also started on ~27th August (without making any changes in the Travis build script).

Not only the browser running on SauceLabs cannot access “localhost” server running on Travis, it cannot access _any_ website ([google.com](http://google.com) etc.). Sauce Connect doctor is not reporting any significant issue.

Interesting thing I noticed is when I run the _same_ script on forked repo, which uses [travis-ci.org](http://travis-ci.org) (not .com) it work seamlessly. So this may point to eg. some networking problem on [travis-ci.com](http://travis-ci.com).

---

<div class="post-metadata">

**Author:** ![robwalch](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/robwalch/32/5141_2.png) [@robwalch](https://travis-ci.community/u/robwalch)\
**Post date:** [September 9, 2020, 4:16pm UTC](https://travis-ci.community/t/opening-test-url-times-out-over-sauce-connect/9824/5 "2020-09-09T16:16:35Z")

</div>

The url bar reads `data:` but the selenium command to open the test at localhost was sent, and times out.

---

<div class="post-metadata">

**Author:** ![OndraM](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/ondram/32/3445_2.png) [@OndraM](https://travis-ci.community/u/OndraM)\
**Post date:** [September 10, 2020, 11:05am UTC](https://travis-ci.community/t/opening-test-url-times-out-over-sauce-connect/9824/6 "2020-09-10T11:05:47Z")

</div>

Yes, thats right.

Also when I take over control of the browser (started from Travis with Sauce Connect] in Sauce Labs dashboard, I can verify I cannot access basically any website from that browser.

---

<div class="post-metadata">

**Author:** ![robwalch](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/robwalch/32/5141_2.png) [@robwalch](https://travis-ci.community/u/robwalch)\
**Post date:** [September 10, 2020, 6:46pm UTC](https://travis-ci.community/t/opening-test-url-times-out-over-sauce-connect/9824/7 "2020-09-10T18:46:22Z")

</div>

> Also when I take over control of the browser (started from Travis with Sauce Connect] in Sauce Labs dashboard, I can verify I cannot access basically any website from that browser.

Oh yeah? I found that clicking in the url bar showed the localhost address it’s trying to connect to, but it just doesn’t connect. I don’t know if I tried visiting any other sites.

> Interesting thing I noticed is when I run the _same_ script on forked repo, which uses [travis-ci.org](http://travis-ci.org/) (not .com) it work seamlessly. So this may point to eg. some networking problem on [travis-ci.com](http://travis-ci.com/).

So should we be reporting this to support at travis? This space was the only course of action I found for reporting issues with travis-ci.

---

<div class="post-metadata">

**Author:** ![robwalch](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/robwalch/32/5141_2.png) [@robwalch](https://travis-ci.community/u/robwalch)\
**Post date:** [September 10, 2020, 9:58pm UTC](https://travis-ci.community/t/opening-test-url-times-out-over-sauce-connect/9824/8 "2020-09-10T21:58:43Z")

</div>

All,

Thanks for all the tips! I sent an email to support since this seems to be an issue in [travis-ci.org](http://travis-ci.org) with the sauce-connect add-on.

I got my tests running again by switching over from the sauce-connect travis add-on to npm sauce-connect-launcher. [I deleted the addon section from my .travis.yml config, and I added async steps in the test runner before and after hooks to launch/close the module](https://github.com/video-dev/hls.js/pull/3035). Tests are running again. So far so good!

---

<div class="post-metadata">

**Author:** ![mustafa](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/mustafa/32/2752_2.png) [@mustafa](https://travis-ci.community/u/mustafa)\
**Post date:** [September 23, 2020, 3:13pm UTC](https://travis-ci.community/t/opening-test-url-times-out-over-sauce-connect/9824/9 "2020-09-23T15:13:01Z")

</div>

Hi all,

We are in touch with Sauce Lab Support Team and they clarified that they were able to fix this issue on their end. So we expect this to be resolved for your case as well. Could you please re-check and see if this is still the case?

Thanks

---

<div class="post-metadata">

**Author:** ![nickcmaynard](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/nickcmaynard/32/5225_2.png) [@nickcmaynard](https://travis-ci.community/u/nickcmaynard)\
**Post date:** [September 23, 2020, 6:50pm UTC](https://travis-ci.community/t/opening-test-url-times-out-over-sauce-connect/9824/10 "2020-09-23T18:50:22Z")

</div>

Still broken for me I’m afraid.

> **[Travis CI - Test and Deploy with Confidence](https://travis-ci.com/github/nickcmaynard/jsonschemalint/builds/186255748)**

---

<div class="post-metadata">

**Author:** ![robwalch](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/robwalch/32/5141_2.png) [@robwalch](https://travis-ci.community/u/robwalch)\
**Post date:** [September 24, 2020, 12:42am UTC](https://travis-ci.community/t/opening-test-url-times-out-over-sauce-connect/9824/11 "2020-09-24T00:42:40Z")

</div>

I switched from travis sauce-connect add-on to npm sauce-connect-launcher to address the issue.

When I rerun older builds from commits that use the add-on like this [https://travis-ci.org/github/video-dev/hls.js/jobs/723889268](https://travis-ci.org/github/video-dev/hls.js/jobs/723889268) they still fail.
