Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoMethodError in Hackathons::WebsiteArchivalJob #486

Open
appsignal bot opened this issue Jun 22, 2024 · 1 comment
Open

NoMethodError in Hackathons::WebsiteArchivalJob #486

appsignal bot opened this issue Jun 22, 2024 · 1 comment

Comments

@appsignal
Copy link

appsignal bot commented Jun 22, 2024

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

@garyhtou
Copy link
Member

Solution: Check for success? on Faraday response before digging.

connection.get("save/status/#{job_id}").body&.dig("status")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant