[🐛 Bug]:
What happened?
Trailing '/' on /status endpoint results in error.
Selenium 4.12.1 Fully Distributed Grid Component with error: Router
Instances were not coming up healthy in ALB due to error hitting health check endpoint. Cloudformation template did not contain the trailing slash, it was added by AWS. I manually edited the health check endpoint and removed the trailing slash and the health check began passing.
curl http://127.0.0.1:4444/status
{
"value": {
"ready": true,
"message": "Selenium grid ready.",
...
}
}
curl http://127.0.0.1:4444/status/
{
"value": {
"error": "unknown command",
"message": "Unable to find handler for (GET) \u002\status\u002",
"stacktrace": ""
}
}
How can we reproduce the issue?
Setup a Cloudformation stack for Router component that contains ALB/ELB. Health check points to /status endpoint. Instances are never added to ELB due to failing health check (due to trailing slash)
Relevant log output
There was no stacktrace in the returned error and no associated logs
Operating System
Amazon Linux 2
Selenium version
java 4.12.1
What are the browser(s) and version(s) where you see this issue?
Chrome 117 but router never became healthy (according to ELB)
What are the browser driver(s) and version(s) where you see this issue?
Chrome Driver 117 but router never became healthy (according to ELB)
Are you using Selenium Grid?
4.12.1
@johnbartels, thank you for creating this issue. We will troubleshoot it as soon as we can.
Info for maintainers
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template label.
If the issue is a question, add the I-question label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-* label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer label.
Thank you!
My CF template did in fact have a trailing slash; I still feel that the API should gracefully handle that condition rather than barf, but closing this out as I filed too hastily.
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.