Open appsignal[bot] opened 4 months ago
Message
undefined method `dig' for an instance of String
Backtrace (last 10 lines)
lib/internet_archive/capture.rb:25 status lib/internet_archive/capture.rb:17 finished? app/models/hackathon/website/archivable.rb:34 block in archive_website /usr/local/lib/ruby/3.3.0/timeout.rb:186 block in timeout /usr/local/lib/ruby/3.3.0/timeout.rb:41 handle_timeout /usr/local/lib/ruby/3.3.0/timeout.rb:195 timeout app/models/hackathon/website/archivable.rb:33 archive_website app/jobs/hackathons/website_archival_job.rb:6 perform activejob/lib/active_job/execution.rb:68 block in _perform_job activesupport/lib/active_support/callbacks.rb:121 block in run_callbacks
View on AppSignal: https://appsignal.com/hack-club/sites/64dc848fd2a5e4d7b35c5ca2/exceptions/incidents/145
Solution: Check for success? on Faraday response before digging.
success?
dig
https://github.com/hackclub/hackathons-backend/blob/2c5c2d6b5081df398ed5120e9bb4626b7b150337/lib/internet_archive/capture.rb#L25
Message
Backtrace (last 10 lines)
View on AppSignal: https://appsignal.com/hack-club/sites/64dc848fd2a5e4d7b35c5ca2/exceptions/incidents/145