etaoin

simongray 2023-03-23T09:36:11.428719Z

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

simongray 2023-03-23T09:36:31.390759Z

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

simongray 2023-03-23T09:36:44.665689Z

Not sure what 69 means

simongray 2023-03-23T09:37:29.344769Z

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

simongray 2023-03-23T09:40:38.872379Z

e.g.

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

lread 2023-03-23T12:56:09.403489Z

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

lread 2023-03-23T12:57:52.062019Z

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

simongray 2023-03-23T14:02:42.688949Z

mac

simongray 2023-03-23T14:05:06.636679Z

it works OK if I just have `

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

simongray 2023-03-23T14:06:47.485519Z

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

lread 2023-03-23T14:31:47.215619Z

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

lread 2023-03-23T14:33:17.648819Z

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.

simongray 2023-03-23T14:41:51.800249Z

not anymore no, my code is all changed since tuesday ๐Ÿ˜•

simongray 2023-03-23T14:42:35.000269Z

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

simongray 2023-03-23T14:42:53.271219Z

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

lread 2023-03-23T14:43:19.676609Z

Ah ok. So case closed for now?

simongray 2023-03-23T14:43:22.421949Z

yeah

simongray 2023-03-23T14:43:56.086649Z

should have just checked for xhr more thoroughly to begin with ๐Ÿ˜›

lread 2023-03-23T14:43:59.625169Z

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

๐Ÿ™ 1
lread 2023-03-23T14:45:57.254339Z

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

simongray 2023-03-23T14:48:15.301099Z

indeed