I get similar errors just doing things sequentially, reusing one driver.
clojure.lang.ExceptionInfo: gave up trying to launch :firefox after 1 tries {}
at etaoin.api$_run_driver.invokeStatic(api.clj:3504)
clojure.lang.ExceptionInfo: WebDriver process exited unexpectedly with a value: 69 {}
at etaoin.api$running_QMARK_.invokeStatic(api.clj:2230)
at etaoin.api$running_QMARK_.invoke(api.clj:2218)
at etaoin.api$wait_running$fn__7701.invoke(api.clj:2630)
at etaoin.api$wait_predicate$fn__7626.invoke(api.clj:2503)
...Not sure what 69 means
but I wonder if I can just increase the retries? Or does it make a difference to instantiate a another driver?
e.g.
(e/firefox-headless {:webdriver-failed-launch-retries 2})
@simongray I don't remember seeing geckodriver exit code 69. I've found, in my experience, that Safari WebDriver is the only one that exits unexpectedly and needs a retry. Also sometimes odd things happen on CI for Windows. What OS are you on?
Also: Can you clone Etaoin, and from the project root paste the result of bb tools-versions for me?
mac
it works OK if I just have `
{:webdriver-failed-launch-retries 2}
`$ bb tools-versions
[ TASK tools-versions ]---------------------------------------------------------
|-------------------+-----------------------------------------------------------------------------------------------------+--------------------------------------------|
| Name | Version | Path |
|-------------------+-----------------------------------------------------------------------------------------------------+--------------------------------------------|
| Java | openjdk version "19.0.2" 2023-01-17 | /usr/bin/java |
| | OpenJDK Runtime Environment Homebrew (build 19.0.2) | |
| | OpenJDK 64-Bit Server VM Homebrew (build 19.0.2, mixed mode, sharing) | |
| Babashka | babashka v1.3.176 | /usr/local/bin/bb |
| Image Magick | Version: ImageMagick 7.1.1-4 Q16-HDRI x86_64 20976 | /usr/local/bin/magick |
| Chrome | 111.0.5563.110 | /Applications/Google |
| Chrome Webdriver | ChromeDriver 111.0.5563.64 (c710e93d5b63b7095afe8c2c17df34408078439d-refs/branch-heads/5563@{#995}) | /usr/local/bin/chromedriver |
| Firefox | 111.0.1 | /Applications/Firefox.app |
| Firefox Webdriver | geckodriver 0.32.2 | /usr/local/bin/geckodriver |
| Edge | 111.0.1661.51 | /Applications/Microsoft |
| Edge Webdriver | ** ERROR: bin not found: msedgedriver ** | |
| Safari | 16.3 | /Applications/Safari.app |
| Safari Webdriver | Included with Safari 16.3 (18614.4.6.1.6) | /System/Cryptexes/App/usr/bin/safaridriver |
|-------------------+-----------------------------------------------------------------------------------------------------+--------------------------------------------|
TASK tools-versions done. Thanks! I expect you don't have a reproducible example of this failure I could try?
BTW, the fact that I don't remember seeing an exit of 69 might not mean a lot. WebDrivers and browsers are continually changing, so it might be just a new behaviour.
not anymore no, my code is all changed since tuesday ๐
anyway, I found the xhr theyโre doing behind the scenes and it is easier than running the URLs through etaoin, so Iโll be going that route now
but it was a fun learning experience. I will definitely use it i future when need be.
Ah ok. So case closed for now?
yeah
should have just checked for xhr more thoroughly to begin with ๐
Ok, well thanks for sharing your issue. Hopefully we can get to the bottom of it someday!
Yes, Etaoin is cool and all, but if you can find a simpler route than using WebDrivers controlling web browsers, yes, take it!
indeed