Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device Farm incompatibility - with workaround #217

Open
dholroyd opened this issue May 11, 2024 · 0 comments
Open

Device Farm incompatibility - with workaround #217

dholroyd opened this issue May 11, 2024 · 0 comments

Comments

@dholroyd
Copy link

Attempting to use thirtyfour with Device Farm, I hit the following issue trying to create a session in WebDriver::new(),

webdriver server gave non-conformant response:
  Object {"Output": Object {"__type": String("com.amazon.coral.service#UnknownOperationException")}, "Version": String("1.0")}

In order to debug this, I hacked thirtyfour to log the URLs it is accessing, and noticed an inconsistency:

  • The value produced by the aws-sdk-devicefarm create_test_grid_url() method looks like https://$hostname/$token/wd/hub
  • The URLs that thirtyfour contructs given this URL end up looking like https://$hostname/$token/wd/session

I altered my code to append a trailing / to the Device-Farm-issued URL before calling WebDriver::new() and that got things working, with thirtyfour now constructing URLs like https://$hostname/$token/wd/hub/session:

let url = format!("{}/", url);

(Noting #215 - I don't expect this ticket to get attention any time soon, but maybe the info will be helpful for others.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant