You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a code that downloads a file from a website, it only works with the setting (headless: false) otherwise it just doesn't download anything.
I add the task of running the script to cron and I get this error (home/peeper/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ferrum-0.13/lib/ferrum/browser/process.rb:157:in parse_ws_url: Browser did not produce websocket url within 10 seconds, try to increase :process_timeout. See https://github.com/rubycdp/ferrum#customization (Ferrum::Process Timeout Error)
)
And this error is present only if you run the code from under cron, everything works in a normal console.
I have a code that downloads a file from a website, it only works with the setting (
headless: false
) otherwise it just doesn't download anything.I add the task of running the script to cron and I get this error (
home/peeper/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/ferrum-0.13/lib/ferrum/browser/process.rb:157:in parse_ws_url: Browser did not produce websocket url within 10 seconds, try to increase :process_timeout. See https://github.com/rubycdp/ferrum#customization (Ferrum::Process Timeout Error
))
And this error is present only if you run the code from under cron, everything works in a normal console.
Cron:
eval "$(~/.rbenv/bin/rbenv init - bash)"
DISPLAY=:0
cd /home/peeper/xxx && /home/peeper/.rbenv/versions/2.7.2/bin/ruby main.rb
The text was updated successfully, but these errors were encountered: