aerokube / ggr

A lightweight load balancer used to create big Selenium clusters
https://aerokube.com/ggr/latest/
Apache License 2.0
314 stars 74 forks source link

Unable to specify empty chrome version #354

Closed talgreen1 closed 2 years ago

talgreen1 commented 2 years ago

Hello,

I would like to always use the latest Chrome version. When trying to use empty values for 'defaultVersion' and 'number' in the quota file, I'm getting an error:

SessionNotCreatedException: Could not start a new session. Response code 500. Message: cannot create session chrome on any hosts after 3 attempt(s), last host error was: invalid argument: entry 0 of 'firstMatch' is invalid from invalid argument: cannot parse capability: browserVersion

When trying to use "latest" for both of them: _SessionNotCreatedException: Could not start a new session. Response code 500. Message: cannot create session chrome-latest on any hosts after 3 attempt(s), last host error was: Requested environment is not available

Is there any way to perform this?

This is my quota file: image

thanxx commented 2 years ago

I'm in the same boat, looking for a way to avoid hardcoding browser versions

vania-pooh commented 2 years ago

@talgreen1 just remove defaultVersion field.

talgreen1 commented 2 years ago

@vania-pooh I've tried it and I'm getting this error: Could not start a new session. Response code 500. Message: cannot create session chrome on any hosts after 3 attempt(s), last host error was: invalid argument: entry 0 of 'firstMatch' is invalid from invalid argument: cannot parse capability: browserVersion from invalid argument: cannot be empty

vania-pooh commented 2 years ago

@talgreen1 could you check whether this is reproducing with previous Ggr release (1.6.9)?

talgreen1 commented 2 years ago

@vania-pooh With release 1.6.9 - it's working fine. I've tried with empty defaultVersion attribute and without that attribute at all - both are working fine.

vania-pooh commented 2 years ago

@talgreen1 could you clarify your Selenium client version and programming language.

talgreen1 commented 2 years ago

@vania-pooh I'm using Java, with selenium-java version 4.1.2

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.