I am not sure if this is a Geb issue but hoping maybe the smart people here could maybe help understand why I occasionally see this error. We have a test suite of about 650 test cases that run 4 times overnight for different resolutions. So that is about 2200 tests per night. I will have occasional failures, usually 1 or 2, with this exception:
Unable to determine type from: <. Last 1 characters read: < Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'redacted.corporate.redacted.com', ip: '192.168.1.15', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.6', java.version: '11.0.4' Driver info: driver.version: RemoteWebDriver org.openqa.selenium.json.JsonException: Unable to determine type from: <. Last 1 characters read: < Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'redacted.corporate.redacted.com', ip: '192.168.1.15', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.6', java.version: '11.0.4' Driver info: driver.version: RemoteWebDriver at org.openqa.selenium.json.JsonInput.peek(JsonInput.java:122) at org.openqa.selenium.json.JsonTypeCoercer.lambda$null$6(JsonTypeCoercer.java:140) at org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:126) at org.openqa.selenium.json.Json.toType(Json.java:69) at org.openqa.selenium.json.Json.toType(Json.java:55) at org.openqa.selenium.json.Json.toType(Json.java:50) at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:87) at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49) at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:277) at geb.Browser.go(Browser.groovy:533) at geb.Browser.go(Browser.groovy:510) at geb.spock.GebSpec.methodMissing(GebSpec.groovy:60) at geb.BaseTest.cleanup(BaseTest.groovy:71) In my last case I had this happen twice. The first when trying to click an element. IntelliJ said this is the offending line of code: pageHeader {$("div h3")[0]} which is the first item inside a static content block on a page. The second one the offending line was the end bracket "}" of an if statement. Versions of everything being used: Grid: 3.141.59 org.seleniumhq.selenium:selenium-remote-driver:3.141.59 org.seleniumhq.selenium:selenium-server:3.141.59 org.codehaus.groovy:groovy-all:2.5.8 org.spockframework:spock-core:1.3-groovy-2.5 org.gebish:geb-spock:3.4 The remote driver is not being invoked in any obscure way: remoteDriver = new RemoteWebDriver(URI.create(hubUrl).toURL(), capabilities) When this happens it's usually in the middle of a test class where several tests before it have passed with no issues using the very same code. Things I know: 1. It only happens when running on the grid aka with RemoteWebDriver. I have never seen it happen locally. 2. It happens once about every 2200 tests. 3. It's never the same test, same method, or same action. 4. It happens on both Chrome and Firefox (unsure about other browsers). 5. The message is always "Unable to determine type from: <. Last 1 characters read: <" It almost seems as if there is a sync issue somewhere Geb or WebDriver or something.. I am unsure how 1500+ test cases can pass and then all of the sudden encounter this error. I would gladly provide any help I can. Unfortunately I cannot hand out this code for anyone to test and I don't even know what kind of example project I could throw together to even attempt to try to reproduce this. I am hoping the stack trace will help someone identify something. -- 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 geb-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/e1b47afa-cb2a-4fba-906b-ea6146b17354n%40googlegroups.com.