Closed itkhanz closed 1 year ago
This happens because you are sending a session request with a platformName
but the configured stereotype does not have one, so the Distributor cannot match the request to a Node. You should be having a message saying something related to that in the log.
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.
What happened?
Hi, I am trying to setup Docker Dynamic Grid. The node-docker and selenium-hub is created successfully but when I execute my tests, all the tests fail with timeout because the Dynamic grid does not start a new standalone container based on session request for corresponding browser.
This is the error in node-docker logs and seems it probably has to do something with content length or capabilities. I have total of 9 tests with 3 tests for each browser (edge, chrome and firefox) and i get the same error for each session request.
WARN [SeleniumSpanExporter$1.lambda$export$3] - {"traceId": "828df50fadd125fd657b29ce777edf82","eventTime": 1673221222249126100,"eventName": "HTTP request execution complete","attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.grid.sessionqueue.local.LocalNewSessionQueue","http.host": "localhost:4444","http.method": "POST","http.request_content_length": "503","http.scheme": "HTTP","http.status_code": 500,"http.target": "\u002fsession","http.user_agent": "selenium\u002f4.6.0 (java windows)"}}
This is my docker-compose-v3-dynamic-grid.yml in the project root
and this is my dynamic-grid-config.toml
I also exposed the daemon on tcp://localhost:235 without TLS in Docker Desktop.
This is how I am initializing the remote webdriver for each of the browsers with switch case statements e.g. for MicrosoftEdge
The Grid and Node is setup but the docker does not creates new containers based on session requests dynamically.
The tests fail after a timeout and the terminal logs show following ERROR for each of the test:
Command used to start Selenium Grid with Docker
Relevant log output
Operating System
Windows 10
Docker Selenium version (tag)
4.7.2-20221219