-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When sending commands through Healenium Proxy, requests should be forwarded to the correct Appium/Selenium server path, as defined by SELENIUM_SERVER_URL. However, the proxy strips the /wd/hub path, causing requests to be sent to /session instead of /wd/hub/session. This leads to a 404 Not Found error from Appium/Selenium.
/wd/hub cannot be removed in architectures that support both appium 1 and 2. Regardless, SELENIUM_SERVER_URL should be user defined. ``
How to reproduce the issue
Start all Healenium components using Docker.
Set the SELENIUM_SERVER_URL environment variable to include /wd/hubLogs appeared during using Healenium
[Proxy] Using Selenium server: http://appium:4723/wd/hub
500 Server Error for HTTP POST "/session"
java.lang.IllegalArgumentException: Session ID key must be setExpected behavior
The proxy should correctly forward requests to http://appium:4723/wd/hub/session, preserving the /wd/hub path.
Actual behavior
Requests are incorrectly sent to /session, causing a 404 Not Found error.
[Proxy] Using Selenium server: http://appium:4723/wd/hub
500 Server Error for HTTP POST "/session"
java.lang.IllegalArgumentException: Session ID key must be set
Healenium Backend version
3.4.5
Selenium version
appium
Platform
Java
Additional context
Similar to healenium/healenium#62
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working