question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Selenium Grid gets stuck right after a screenshot of a failed test is taken

See original GitHub issue

🐛 Bug Report

It seems that, at times, as pointed in https://github.com/SeleniumHQ/selenium/issues/9171#issuecomment-797621950 the Selenium Grid gets stuck right after a screenshot of a failed test is taken

The exception:

07:08:40    [testng] 2021-03-17 07:08:39 EET (Europe/Helsinki) running 'PRIVATE' on node 'http://PRIVATE:5555'
07:19:28    [testng] 2021-03-17 07:19:28 EET (Europe/Helsinki) GeneralVsFactsetImportBonds3.PRIVATE - QQ39QP-1I.png
07:19:28    [testng] org.openqa.selenium.WebDriverException: null value in entry: message=null
07:19:28    [testng] Build info: version: '4.0.0-beta-2', revision: '9c138bc189'
07:19:28    [testng] System info: host: 'PRIVATE', ip: 'PRIVATE', os.name: 'Windows Server 2008 R2', os.arch: 'amd64', os.version: '6.1', java.version: '11.0.9'
07:19:28    [testng] Driver info: org.openqa.selenium.remote.RemoteWebDriver
07:19:28    [testng] Command: [339713c9e3f8b4ef603828b0daa7e619, screenshot {}]
07:19:28    [testng] Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 89.0.4389.90, chrome: {chromedriverVersion: 89.0.4389.23 (61b08ee2c5002..., userDataDir: C:\Users\PRIVATE\AppData\Local\T...}, goog:chromeOptions: {debuggerAddress: localhost:51268}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), se:cdp: http://PRIVATE:5555/ses..., setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
07:19:28    [testng] Session ID: 339713c9e3f8b4ef603828b0daa7e619
07:19:28    [testng] 	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
07:19:28    [testng] 	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
07:19:28    [testng] 	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
07:19:28    [testng] 	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
07:19:28    [testng] 	at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:195)
07:19:28    [testng] 	at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:128)
07:19:28    [testng] 	at org.openqa.selenium.remote.codec.w3c.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:52)
07:19:28    [testng] 	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:187)
07:19:28    [testng] 	at org.openqa.selenium.remote.TracedCommandExecutor.execute(TracedCommandExecutor.java:39)
07:19:28    [testng] 	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:620)
07:19:28    [testng] 	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:675)
07:19:28    [testng] 	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:679)
07:19:28    [testng] 	at org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(RemoteWebDriver.java:355)
07:19:28    [testng] 	at PRIVATE.takeAPicture(PRIVATE.java:760)
07:19:28    [testng] 	at PRIVATE.ScreenshotListener.getScreenshot(ScreenshotListener.java:25)
07:19:28    [testng] 	at PRIVATE.ScreenshotListener.onTestFailure(ScreenshotListener.java:30)
07:19:28    [testng] 	at org.testng.internal.TestListenerHelper.runTestListeners(TestListenerHelper.java:96)
07:19:28    [testng] 	at org.testng.internal.TestInvoker.runTestResultListener(TestInvoker.java:220)
07:19:28    [testng] 	at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:657)
07:19:28    [testng] 	at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
07:19:28    [testng] 	at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
07:19:28    [testng] 	at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
07:19:28    [testng] 	at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
07:19:28    [testng] 	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
07:19:28    [testng] 	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
07:19:28    [testng] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
07:19:28    [testng] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
07:19:28    [testng] 	at java.base/java.lang.Thread.run(Thread.java:834)

WebDriver logs

212167b103f994db2b63ed88e3","spanId": "e855f37d833f54bb","spanKind": "INTERNAL",
"eventTime": 1615956836138174614,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

06:53:56.338 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "80b113
3b3e0aa74083e733c63a5cbed8","spanId": "825782481dbb1401","spanKind": "INTERNAL",
"eventTime": 1615956836337166794,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

06:54:41.638 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "144744
7e0bde100c7834ee3df4a68dd0","spanId": "700d62ec93d09fd4","spanKind": "INTERNAL",
"eventTime": 1615956881637376968,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

06:54:41.742 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "588c6d
29bca8c243a355855ab0489a44","spanId": "3a9d1d105b370bc5","spanKind": "INTERNAL",
"eventTime": 1615956881741158426,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

06:55:27.460 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "5aeecb
78ef52e8dd3d2c85761dee8854","spanId": "ac62bbbb14abadc7","spanKind": "INTERNAL",
"eventTime": 1615956927460169185,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "79","http.scheme": "HTTP","http
.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0da
a7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (j
ava windows)"}}

06:56:13.158 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "72d825
ad490bd8a9ef24af3c594d1a41","spanId": "c93385c5ce13640b","spanKind": "INTERNAL",
"eventTime": 1615956973157558589,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "79","http.scheme": "HTTP","http
.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0da
a7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (j
ava windows)"}}

06:57:00.900 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "a551a6
c08ad942519c43fb5477700c87","spanId": "8bdb96d652f6d268","spanKind": "INTERNAL",
"eventTime": 1615957020900450278,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

06:57:47.072 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "7326e0
0ce3b9a1d55ac453c74fa0e755","spanId": "15035a8a2bb8b190","spanKind": "INTERNAL",
"eventTime": 1615957067071130876,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

06:57:47.225 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "1bcd1c
7531f698d3b5ed92a7d5900bdc","spanId": "aebd677f5764b0af","spanKind": "INTERNAL",
"eventTime": 1615957067224598034,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

06:58:34.502 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "4f29df
821e81ae98573142202f93cfc6","spanId": "340bfc224ac91b0d","spanKind": "INTERNAL",
"eventTime": 1615957114501218142,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

06:59:22.752 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "4df2aa
ebf50dfca5d5b65b9e630924f5","spanId": "4795105c13f5624c","spanKind": "INTERNAL",
"eventTime": 1615957162751104780,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:00:10.968 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "660587
eb5bdde089b12cc5687cfb9ccc","spanId": "613222a3ab0b42c4","spanKind": "INTERNAL",
"eventTime": 1615957210967613814,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "79","http.scheme": "HTTP","http
.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0da
a7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (j
ava windows)"}}

07:01:00.068 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "61b564
e4fd7d927cd905d182a811c49d","spanId": "cf4763b18fac92a3","spanKind": "INTERNAL",
"eventTime": 1615957260066932362,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:03:13.209 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "e6ad12
0b029c8b6d65b7f9ae68c67aae","spanId": "2e4e1ace6d3d4ceb","spanKind": "INTERNAL",
"eventTime": 1615957393208253691,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:03:13.584 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "e49f13
bc33fe08ac0c97921c770cfd28","spanId": "9a2fe7a465c6b344","spanKind": "INTERNAL",
"eventTime": 1615957393584719335,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:04:00.359 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "829dd7
fbfd22c5ce56a2e2bb92f3e02b","spanId": "4c0bc965357ef401","spanKind": "INTERNAL",
"eventTime": 1615957440359228895,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:04:00.704 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "ba2284
6f55457bb3ad4822c985c7193a","spanId": "19fa5bd69c36d815","spanKind": "INTERNAL",
"eventTime": 1615957440703416395,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:04:47.927 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "3e5fb8
b5e116c24d2fde07e2988d7e98","spanId": "29bf03ebfc0460ba","spanKind": "INTERNAL",
"eventTime": 1615957487927079489,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:04:48.092 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "f7da04
e4681ec35560ac51997cbc8d28","spanId": "333b1ebc36b08113","spanKind": "INTERNAL",
"eventTime": 1615957488091740301,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:05:37.555 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "65cc88
c3324c719120ae00b45e65a139","spanId": "b9e9c339be12293c","spanKind": "INTERNAL",
"eventTime": 1615957537554840096,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:05:37.720 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "997b08
1b6f563efe3a3a93947e6366a8","spanId": "92c956c0bb060f4d","spanKind": "INTERNAL",
"eventTime": 1615957537718944908,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:06:23.903 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "2d636a
0239e536f07ada810ef059a4e0","spanId": "53e98e3b7c459f77","spanKind": "INTERNAL",
"eventTime": 1615957583902518420,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:06:24.016 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "9948bc
13b0bf996cbad9290ddd911f25","spanId": "716f6ef2d429cbd5","spanKind": "INTERNAL",
"eventTime": 1615957584014874171,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:07:11.771 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "9149f6
bbc4a9520205e739803a346255","spanId": "0d5fec3c09593268","spanKind": "INTERNAL",
"eventTime": 1615957631771365191,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:08:03.409 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "fe78db
20c1b179eefebff1213b947331","spanId": "19e673043fd2c2ba","spanKind": "INTERNAL",
"eventTime": 1615957683408786631,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:08:03.564 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "30b00e
ca7d098d56e84a29f25af4c100","spanId": "3583ecb12c5f1df7","spanKind": "INTERNAL",
"eventTime": 1615957683563912497,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:10:51.554 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "dd337b
bc2fe1fc9656f8865bc61493d0","spanId": "381c24e31ba3dbff","spanKind": "INTERNAL",
"eventTime": 1615957851553926369,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:10:51.706 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "740871
9338caabc3bbbb3974e66264fe","spanId": "b2623f2bfe512bd2","spanKind": "INTERNAL",
"eventTime": 1615957851705324765,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:12:13.750 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "138531
9bffb636373966c5e82adaa26c","spanId": "dc8f88a764bc9cd8","spanKind": "INTERNAL",
"eventTime": 1615957933749956903,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

07:12:13.961 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "8acd76
6420ef3b522a5ae7ce5ebed700","spanId": "fe59407affc85bb3","spanKind": "INTERNAL",
"eventTime": 1615957933961506386,"eventName": "HTTP request execution complete",
"attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.remot
e.http.Route$PredicatedRoute","http.host": "PRIVATE:4449","http
.method": "POST","http.request_content_length": "164","http.scheme": "HTTP","htt
p.status_code": 500,"http.target": "\u002fsession\u002f339713c9e3f8b4ef603828b0d
aa7e619\u002fexecute\u002fsync","http.user_agent": "selenium\u002f4.0.0-beta-2 (
java windows)"}}

To Reproduce

My setup is the following - I have several grids with hubs listening to different ports on a single Virtual Machine . For a single grid I would have:

Hub

start C:/"Program Files"/Java/jdk-11.0.9+11/bin/java -jar selenium-server-4.0.0-prerelease-beta-2-9c138bc189.jar hub --port 4452 --publish-events tcp://HUB_IP:4455 --subscribe-events tcp://HUB_IP:4456

Node_1

start C:/"Program Files"/Java/jdk-11.0.9+11/bin/java -jar selenium-server-4.0.0-prerelease-beta-2-9c138bc189.jar node --detect-drivers true -I "chrome" -I "edge" -I "internet explorer" --publish-events tcp://HUB_IP:4455 --subscribe-events tcp://HUB_IP:4456 --max-sessions 1

Detailed steps to reproduce the behavior:

Expected behavior

No such exception is thrown

Environment

OS: Windows 7 Browser: Chrome Browser version: 89.0.4389.90 Browser Driver version: 89.0.4389.23 Language Bindings version: jdk-11.0.9+11 Selenium Grid version (if applicable): Grid 4 (selenium-server-4.0.0-prerelease-beta-2-9c138bc189.jar )

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
hnestorovacommented, Mar 30, 2021

Hi I confirm that with the new jar things work as expected i.e. i am able to set a session timeout Thank you

0reactions
hnestorovacommented, Mar 29, 2021

yes, I just saw it 😃 I will try and post an update

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Challenges In Selenium Automation & How To Fix ...
Selenium makes testing easy but there are a fair number of challenges faced in Selenium automation. Here we will address these challenges ...
Read more >
How to Capture Screenshot in Selenium for Failed Test Cases
1-We will use ITestResult Interface which will provide us the test case execution status and test case name. 2- @AfterMethod is another ...
Read more >
Not able to execute more that 5 instances of browser in a node ...
When I execute more than 5 tests in parallel using TestNG via Selenium Grid, only 5 are getting executed simultaneously.
Read more >
Why do we need to take a screenshot on test failed - SDET PRO
What we are going to do it to: Use AfterMethod hook for a method where we will get result from ITestResult to detect...
Read more >
How to Take a Screenshot in Selenium - Testim.io
Why Take Screenshots? ... While executing the test cases, a tester will face a number of issues. For example, sometimes test cases fail...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found