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.

[🐛 Bug]: [Inconsistent] Error at node: No slot matched the requested capabilities

See original GitHub issue

What happened?

We are running on a Selenium4 grid hub-node configuration then we are getting this error and it’s Inconsistent ‘No slot matched the requested capabilities’ not always this is happening, when we restart the hub-node then 3 or 4 tests works then 5th test case fails with this error at the node level and not sure what’s causing this issue and even we are trying to analyze if this could be our remote 2016/2019 servers that are causing this issue.

Note: At this point of time we are trying to upgrade the selenium 4.2.2 version but other open issues here are causing much bigger issues. So for us, the stable version is 3.141.59 and IE Edge mode with the below code is working

How can we reproduce the issue?

any basic tests to find an element or enter a value with the below IE Edge mode: capability

Setup @BeforeMethod at :
			InternetExplorerOptions ieOptions = new InternetExplorerOptions();
			Map<String, Object> ops = (Map<String, Object>) 
                        ieOptions.getCapability("se:ieOptions");
			ops.put("ie.edgechromium", true);
			ops.put("ie.edgepath", "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe");
			ieOptions.introduceFlakinessByIgnoringSecurityDomains();
			ieOptions.ignoreZoomSettings();
			ieOptions.enablePersistentHovering();
			ieOptions.requireWindowFocus();
			ieOptions.destructivelyEnsureCleanSession();
			ieOptions.withAttachTimeout(Duration.ofSeconds(60));
			ieOptions.setCapability("implicit", "5000");
			ieOptions.setCapability("pageLoad", "60000");
			capability.merge(ieOptions);
		driver = new RemoteWebDriver(new URL(http://XX.XXX.XXX.XX:4444), capability);
		driver.manage().timeouts().implicitlyWait(600L, TimeUnit.MILLISECONDS);
		driver.manage().timeouts().pageLoadTimeout(60, TimeUnit.SECONDS);
		session = ((RemoteWebDriver)driver).getSessionId();

Relevant log output

Started InternetExplorerDriver server (32-bit)
4.0.0.0
Listening on port 50508
Only local connections are allowed
14:45:56.178 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "23685aaebf5b43562437ce329494a1cb","eventTime": 1654893956178961663,"eventName": "No slot matched the requested capabilities. ","attributes": {"current.session.count": 0,"logger": "org.openqa.selenium.grid.node.local.LocalNode","session.request.capabilities": "Capabilities {browserName: internet explorer, platformName: windows, se:ieOptions: {browserAttachTimeout: 60000, enablePersistentHover: true, ie.edgechromium: true, ie.edgepath: C:\\Program Files (x86)\\Micr..., ie.ensureCleanSession: true, ignoreProtectedModeSettings: true, ignoreZoomSetting: true, requireWindowFocus: true}}","session.request.downstreamdialect": "[W3C, OSS]"}}
 
14:45:56.194 WARN [SeleniumSpanExporter$1.lambda$export$0] - {"traceId": "1d2c0221d23af17f499f0f8cb7893353","eventTime": 1654893955596893831,"eventName": "exception","attributes": {"driver.url": "http:\u002f\u002flocalhost:50508","exception.message": "Error while creating session with the driver service. Stopping driver service: java.util.concurrent.TimeoutException\nBuild info: version: '4.1.4', revision: '535d840ee2'\nSystem info: host: 'XXXXXXXXXXXXX', ip: 'XX.XXX.XXX.XX', os.name: 'Windows Server 2016', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_291'\nDriver info: driver.version: unknown","exception.stacktrace": "org.openqa.selenium.TimeoutException: java.util.concurrent.TimeoutException\nBuild info: version: '4.1.4', revision: '535d840ee2'\nSystem info: host: 'XXXXXXXXXXXXX', ip: 'XX.XXX.XXX.XX', os.name: 'Windows Server 2016', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_291'\nDriver info: driver.version: unknown\r\n\tat org.openqa.selenium.remote.http.netty.NettyHttpHandler.makeCall(NettyHttpHandler.java:65)\r\n\tat org.openqa.selenium.remote.http.AddSeleniumUserAgent.lambda$apply$0(AddSeleniumUserAgent.java:42)\r\n\tat org.openqa.selenium.remote.http.Filter.lambda$andFinally$1(Filter.java:56)\r\n\tat org.openqa.selenium.remote.http.netty.NettyHttpHandler.execute(NettyHttpHandler.java:49)\r\n\tat org.openqa.selenium.remote.http.AddSeleniumUserAgent.lambda$apply$0(AddSeleniumUserAgent.java:42)\r\n\tat org.openqa.selenium.remote.http.Filter.lambda$andFinally$1(Filter.java:56)\r\n\tat org.openqa.selenium.remote.http.netty.NettyClient.execute(NettyClient.java:97)\r\n\tat org.openqa.selenium.remote.tracing.TracedHttpClient.execute(TracedHttpClient.java:55)\r\n\tat org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:102)\r\n\tat org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:84)\r\n\tat org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:62)\r\n\tat org.openqa.selenium.grid.node.config.DriverServiceSessionFactory.apply(DriverServiceSessionFactory.java:141)\r\n\tat org.openqa.selenium.grid.node.config.DriverServiceSessionFactory.apply(DriverServiceSessionFactory.java:67)\r\n\tat org.openqa.selenium.grid.node.local.SessionSlot.apply(SessionSlot.java:145)\r\n\tat org.openqa.selenium.grid.node.local.LocalNode.newSession(LocalNode.java:349)\r\n\tat org.openqa.selenium.grid.node.NewNodeSession.execute(NewNodeSession.java:52)\r\n\tat org.openqa.selenium.remote.http.Route$TemplatizedRoute.handle(Route.java:192)\r\n\tat org.openqa.selenium.remote.http.Route.execute(Route.java:68)\r\n\tat org.openqa.selenium.grid.security.RequiresSecretFilter.lambda$apply$0(RequiresSecretFilter.java:64)\r\n\tat org.openqa.selenium.remote.tracing.SpanWrappedHttpHandler.execute(SpanWrappedHttpHandler.java:86)\r\n\tat org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:64)\r\n\tat org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:336)\r\n\tat org.openqa.selenium.remote.http.Route.execute(Route.java:68)\r\n\tat org.openqa.selenium.grid.node.Node.execute(Node.java:240)\r\n\tat org.openqa.selenium.remote.http.Route$CombinedRoute.handle(Route.java:336)\r\n\tat org.openqa.selenium.remote.http.Route.execute(Route.java:68)\r\n\tat org.openqa.selenium.remote.AddWebDriverSpecHeaders.lambda$apply$0(AddWebDriverSpecHeaders.java:35)\r\n\tat org.openqa.selenium.remote.ErrorFilter.lambda$apply$0(ErrorFilter.java:44)\r\n\tat org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:64)\r\n\tat org.openqa.selenium.remote.ErrorFilter.lambda$apply$0(ErrorFilter.java:44)\r\n\tat org.openqa.selenium.remote.http.Filter$1.execute(Filter.java:64)\r\n\tat org.openqa.selenium.netty.server.SeleniumHandler.lambda$channelRead0$0(SeleniumHandler.java:44)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\nCaused by: java.util.concurrent.TimeoutException\r\n\tat java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1784)\r\n\tat java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1928)\r\n\tat org.asynchttpclient.netty.NettyResponseFuture.get(NettyResponseFuture.java:206)\r\n\tat org.openqa.selenium.remote.http.netty.NettyHttpHandler.makeCall(NettyHttpHandler.java:59)\r\n\t... 36 more\r\n","exception.type": "org.openqa.selenium.TimeoutException","logger": "org.openqa.selenium.grid.node.config.DriverServiceSessionFactory","session.capabilities": "{\"se:ieOptions\": {\"ie.edgechromium\": true,\"ie.ensureCleanSession\": true,\"browserAttachTimeout\": 60000,\"enablePersistentHover\": true,\"requireWindowFocus\": true,\"ie.edgepath\": \"C:\\\\Program Files (x86)\\\\Microsoft\\\\Edge\\\\Application\\\\msedge.exe\",\"ignoreZoomSetting\": true,\"ignoreProtectedModeSettings\": true},\"browserName\": \"internet explorer\",\"platformName\": \"ANY\"}\n"}}

Operating System

Microsoft Windows Server 2019/2016 Datacenter

Selenium version

Java 1.8 JDK

What are the browser(s) and version(s) where you see this issue?

IE Edge Mode

What are the browser driver(s) and version(s) where you see this issue?

IE Driver 4.0.0 and Selenium 3141.59

Are you using Selenium Grid?

4.1.4

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
diemolcommented, Jun 14, 2022

Can you share the full Grid logs when the error happens?

0reactions
github-actions[bot]commented, Jul 17, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selenium Remote Configuration issue - Stack Overflow
These are the steps I have done to create selenium remote server. A.I have created an 2 ubuntu boxes in the google cloud....
Read more >
Bug listing with status RESOLVED with resolution UPSTREAM ...
"matches regexp"" status:RESOLVED resolution:UPSTREAM severity:normal · Bug:28376 - "Ebuild for geeklog, a weblog powered by PHP and MySQL.
Read more >
Oracle Database Error Messages
ORA-00152 : current session does not match requested session. Cause: The current session is not the same as the session that was passed...
Read more >
History of Previous Changes - Apache JMeter
Changes sections are chronologically ordered from top (most recent) to bottom (least recent). Version 5.4.3. Summary. This version is a fix release against ......
Read more >
BIG-IP 16.1.2.1 Fixes and Known Issues - AskF5 - F5 Networks
1019609-1, 3-Major, No Error logging when BIG-IP's IP address is not added in ... hotfixes) that include the fixes for BIG-IP bugs ID1032405...
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