Fork me on GitHub
#etaoin
<
2023-03-23
>
simongray09:03:11

I get similar errors just doing things sequentially, reusing one driver.

simongray09:03:31

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)
...

simongray09:03:44

Not sure what 69 means

simongray09:03:29

but I wonder if I can just increase the retries? Or does it make a difference to instantiate a another driver?

simongray09:03:38

e.g.

(e/firefox-headless {:webdriver-failed-launch-retries 2})

lread12:03:09

@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?

lread12:03:52

Also: Can you clone Etaoin, and from the project root paste the result of bb tools-versions for me?

simongray14:03:06

it works OK if I just have `

{:webdriver-failed-launch-retries 2}
`

simongray14:03:47

$ 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.

lread14:03:47

Thanks! I expect you don't have a reproducible example of this failure I could try?

lread14:03:17

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.

simongray14:03:51

not anymore no, my code is all changed since tuesday 😕

simongray14:03:35

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

simongray14:03:53

but it was a fun learning experience. I will definitely use it i future when need be.

lread14:03:19

Ah ok. So case closed for now?

simongray14:03:56

should have just checked for xhr more thoroughly to begin with 😛

lread14:03:59

Ok, well thanks for sharing your issue. Hopefully we can get to the bottom of it someday!

🙏 2
lread14:03:57

Yes, Etaoin is cool and all, but if you can find a simpler route than using WebDrivers controlling web browsers, yes, take it!