I may have found what's interfering. I tried to log in to our proxy in my 
browser (e.g. http://sauceId:[email protected]:443/wd/hub) and got 
funky Unicode characters. The person helping out from within my company 
said I need to use HTTPS instead of HTTP. I tried that and got an error XML 
from our Layer7 appliance. Is there a way to change 
https://github.com/geb/geb/blob/v3.0.1/module/geb-core/src/main/groovy/geb/driver/SauceLabsDriverFactory.groovy#L28
 
so it can use HTTPS if requested?

On Friday, November 1, 2019 at 8:10:45 PM UTC-5, Ben Frey wrote:
>
> Alright, I think I've made a little progress. We passed the proxy URL to 
> the SauceLabsDriverFactory like this:
> new SauceLabsDriverFactory('testserver.company.com:443/wd/hub')
> and now we're having a different stack trace - it seems the tunnel is 
> created successfully (I see "Sauce Connect is up, you may start your 
> tests."), but somehow the test can't connect to the proxy. After 
> "Unexpected status line:" in the exception message there are five numbers 
> in boxes that I can only see in BeyondCompare. The full stack trace is 
> below. Do you have any ideas what's going on?
> test.TestClass > classMethod FAILED
>     geb.driver.DriverCreationException: failed to create driver from 
> callback 'script15726565316811155837962$_run_closure2@65de3495'
>         at geb.driver.CallbackDriverFactory.getDriver(
> CallbackDriverFactory.groovy:35)
>         at geb.driver.CachingDriverFactory.getDriver_closure4(
> CachingDriverFactory.groovy:57)
>         at geb.driver.CachingDriverFactory.getDriver_closure4(
> CachingDriverFactory.groovy)
>         at geb.driver.CachingDriverFactory$SimpleCache.get(
> CachingDriverFactory.groovy:81)
>         at geb.driver.CachingDriverFactory.getDriver(CachingDriverFactory.
> groovy:56)
>         at geb.Configuration.createDriver(Configuration.groovy:675)
>         at geb.Configuration.getDriver(Configuration.groovy:353)
>         at geb.Browser.getDriver(Browser.groovy:160)
>         at geb.navigator.factory.BrowserBackedNavigatorFactory.<init>(
> BrowserBackedNavigatorFactory.groovy:31)
>         at geb.Configuration.createNavigatorFactory(Configuration.groovy:
> 413)
>         at geb.Browser.createNavigatorFactory(Browser.groovy:982)
>         at geb.Browser.getNavigatorFactory(Browser.groovy:170)
>         at geb.Page.init(Page.groovy:140)
>         at geb.Browser.initialisePage(Browser.groovy:1116)
>         at geb.Browser.createPage(Browser.groovy:829)
>         at geb.Browser.to(Browser.groovy:537)
>         at geb.Browser.to(Browser.groovy:526)
>         at geb.spock.GebSpec.methodMissing(GebSpec.groovy:60)
>         at login.LoginTrait$Trait$Helper.logIn(LoginTrait.groovy:7)
>         at test.TestClass.setupSpec(TestClass.groovy:8)
>
>         Caused by:
>         java.lang.reflect.InvocationTargetException
>             at geb.driver.CloudDriverFactory.create(CloudDriverFactory.
> groovy:51)
>             at script15726565316811155837962.run_closure2(
> script15726565316811155837962.groovy:20)
>             at script15726565316811155837962.run_closure2(
> script15726565316811155837962.groovy)
>             at geb.driver.CallbackDriverFactory.getDriver(
> CallbackDriverFactory.groovy:29)
>             ... 19 more
>
>             Caused by:
>             org.openqa.selenium.remote.UnreachableBrowserException: Could 
> not start a new session. Possible causes are invalid address of the 
> remote server or browser start-up failure.
>             Build info: version: '3.141.59', revision: 'e82be7d358', time: 
> '2018-11-14T08:17:03'
>             System info: host: 'server', ip: '1.2.3.4', os.name: 'Linux', 
> os.arch: 'amd64', os.version: '3.10.0-957.21.3.el7.x86_64', java.version: 
> '1.8.0_212'
>             Driver info: driver.version: RemoteWebDriver
>                 at org.openqa.selenium.remote.RemoteWebDriver.execute(
> RemoteWebDriver.java:573)
>                 at org.openqa.selenium.remote.RemoteWebDriver.startSession
> (RemoteWebDriver.java:213)
>                 at org.openqa.selenium.remote.RemoteWebDriver.<init>(
> RemoteWebDriver.java:131)
>                 at org.openqa.selenium.remote.RemoteWebDriver.<init>(
> RemoteWebDriver.java:144)
>                 ... 23 more
>
>                 Caused by:
>                 java.net.ProtocolException: Unexpected status line: 
>                     at okhttp3.internal.http.StatusLine.parse(StatusLine.
> java:69)
>                     at okhttp3.internal.http1.Http1Codec.
> readResponseHeaders(Http1Codec.java:189)
>                     at okhttp3.internal.http.CallServerInterceptor.
> intercept(CallServerInterceptor.java<s
>

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/531a5955-4be3-4f6f-ac60-cb66b953aa83%40googlegroups.com.

Reply via email to