astevens / factorio-mod-updater

Update mods an Factorio headless server
MIT License
20 stars 5 forks source link

undefined method `max_by' for nil:NilClass (NoMethodError) #7

Open MGIMATTY opened 4 years ago

MGIMATTY commented 4 years ago

Script seems defunct. Running on Ubuntu 20.04 LTS, this script returns the following:

/opt/factorio-mod-updater/factorio-mod-updater -s /opt/factorio/data/server-settings.json
Checking
Connecting to mods.factorio.com
/opt/factorio-mod-updater/factorio-mod-updater:17: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open
Traceback (most recent call last):
        2: from /opt/factorio-mod-updater/factorio-mod-updater:76:in `<main>'
        1: from /opt/factorio-mod-updater/factorio-mod-updater:76:in `each'
/opt/factorio-mod-updater/factorio-mod-updater:77:in `block in <main>': undefined method `max_by' for nil:NilClass (NoMethodError)