Webdriver Exception:Process unexpectedly closed with status: 1

Anonymous
TRIAL

a year ago

I am using selenium 4.19.0, and Firefox as the webdriver with headless configuration. My code works perfectly fine in my local machine. However, When I deploy it to railway I get the following error:

selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 1

0 Replies

Anonymous
TRIAL

a year ago

ca15a8b2-bbe5-4c66-b6d9-d7ee51bfe682


a year ago

Because Firefox is not installed in your container.

I would highly recommend using browserless instead, simply deploy browserless into your project and then check out the example here

This would also have the benefits of not needing to install Firefox or it's needed system dependencies making your build and publish times faster!


Anonymous
TRIAL

a year ago

I don't want to use browserless since it's not free to use. How can I install firefox in railway?


a year ago

my recommendation was to run browserless on railway