Skip to content

[BUG]: Proxy Selenium URL (SELENIUM_SERVER_URL) is stripped of /wd/hub value #47

@Krafman

Description

@Krafman

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/hub

Logs 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 set

Expected 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 working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions