hackclub / hackathons-backend

Powering https://hackathons.hackclub.com

Home Page:https://hackathons.hackclub.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NoMethodError in Hackathons::ArchiveWebsiteJob#perform

appsignal opened this issue · comments

Message

  undefined method `body' for nil:NilClass

Backtrace (last 10 lines)

app/models/hackathon/website.rb:28 website_likely_associated?
app/models/hackathon/website/archivable.rb:25 eligible_for_archive?
app/jobs/hackathons/archive_website_job.rb:5 perform
activejob/lib/active_job/execution.rb:69 block in _perform_job
activesupport/lib/active_support/callbacks.rb:121 block in run_callbacks
lib/i18n.rb:322 with_locale
activejob/lib/active_job/translation.rb:9 block (2 levels) in <module:Translation>
activesupport/lib/active_support/callbacks.rb:130 instance_exec
activesupport/lib/active_support/callbacks.rb:130 block in run_callbacks
activesupport/lib/active_support/core_ext/time/zones.rb:65 use_zone

View on AppSignal: https://appsignal.com/hack-club/sites/64dc848fd2a5e4d7b35c5ca2/exceptions/incidents/87

This was caused by a hackathon submitted with an invalid (unreachable) URL.