Hello jc,
the stacktrace seems to indicate that there is HTML being returned where
JSON is expected.
The "<" character is most commonly found as the first character in any
HTML document.
The "type" that is mentioned in the message is one of "JsonArray" or
"JsonObject", starting with "[" and "{" respectively.
It would be helpful to see the full response, and not only the first
character, but that might not be easy to do, as the error itself is
probably
happening on a low level in the communication between the components of
the Grid.
To further investigate this, you might want to look at logfiles written
by Grid components, but right now I don't know where or if there are
any.
I am guessing that there is some kind of resource leak inside the Grid,
which leads to some component responding with a plain HTML error page,
instead of the expected JSON document.
As a first attempt to circumvent this problem I would suggest to restart
the whole Grid between the test runs for different resolutions.
Thomas
>> System info: host: '
redacted.corporate.redacted.com [1]', ip:
>> '192.168.1.15',
os.name [2]: '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 [1]', ip:
>> '192.168.1.15',
os.name [2]: 'Mac OS X', os.arch: 'x86_64',
>> * It only happens when running on the grid aka with
>> RemoteWebDriver. I have never seen it happen locally.
>> * It happens once about every 2200 tests.
>> * It's never the same test, same method, or same action.
>> * It happens on both Chrome and Firefox (unsure about other
>> browsers).
>> * 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+u...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/geb-user/147d363a-18ee-4258-8c03-69f6f7799d49n%40googlegroups.com
> [3].
>
>
> Links:
> ------
> [1]
http://redacted.corporate.redacted.com
> [2]
http://os.name
> [3]
>
https://groups.google.com/d/msgid/geb-user/147d363a-18ee-4258-8c03-69f6f7799d49n%40googlegroups.com?utm_medium=email&utm_source=footer