Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

NoMethodError: undefined method `original_id' for nil:NilClass #3

Closed
fuji-nakahara opened this issue Jul 21, 2018 · 1 comment
Closed
Assignees

Comments

@fuji-nakahara
Copy link
Owner

https://sentry.io/genron-sf/genron-sf/issues/614037987/

NoMethodError: undefined method `original_id' for nil:NilClass
  config/routes.rb:25:in `block (2 levels) in <main>'
    "http://school.genron.co.jp/works/sf/#{work.subject.term_id}/students/#{work.student.original_id}/#{work.original_id}/"
  app/models/work.rb:23:in `original_url'
    Rails.application.routes.url_helpers.original_work_url(self)
  app/models/work.rb:12:in `update_contents'
    doc         = Nokogiri::HTML(open(original_url))
  app/jobs/scrape_works_job.rb:12:in `block in perform'
    Work.find_or_create_by(subject: subject, student: student, original_id: work_id, &:update_contents)
  app/jobs/scrape_works_job.rb:10:in `each'
    student_id_to_work_id.each do |student_id, work_id|
...
(78 additional frame(s) were not displayed)

NoMethodError: undefined method `original_id' for nil:NilClass
@fuji-nakahara fuji-nakahara self-assigned this Jul 21, 2018
fuji-nakahara added a commit that referenced this issue Sep 16, 2018
@fuji-nakahara
Copy link
Owner Author

I'll reopen if this error occurred again.

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

No branches or pull requests

1 participant