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
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!
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