Sunteți pe pagina 1din 2

7/30/2019 Action Controller: Exception caught

NoMethodError in Read2#show
Showing /var/www/apps/scribd-production-r4/releases/20190730162909/app/views/pdfs/errors/deleted.rb where line #103 raised:

undefined method `>' for nil:NilClass

Extracted source (around line #182):

180 end
181
182 return false if row['created_at'] > SEO::OrganicUploadViewRestrictTest::NOT_ELIGIBLE_BEFORE.ago
183
184 timeout = SEO::OrganicUploadViewRestrictTest.new.view_restricted_timeout(restriction.id)
185 (timeout && row['created_at'] < timeout.ago).to_b

Rails.root: /var/www/apps/scribd-production-r4/releases/20190730162909

Application Trace | Framework Trace | Full Trace


lib/document_restriction_loader.rb:182:in `view_restricted_for_row'

lib/document_restriction_loader.rb:102:in `block (2 levels) in load_core_db'

lib/document_restriction_loader.rb:82:in `block in load_core_db'

lib/db_magic/connection_remap.rb:136:in `block in with_db_magic_connection'

lib/db_magic/connection_remap.rb:135:in `with_db_magic_connection'

lib/document_restriction_loader.rb:81:in `load_core_db'

lib/document_restriction_loader.rb:17:in `get_restrictions'

lib/document_restriction.rb:53:in `for'

app/controllers/application_controller.rb:950:in `doc_restrictions'

app/views/helpers/document_flags.rb:36:in `flag_type'

app/views/shared/carousels/document_cells.rb:107:in `show_flag?'

app/views/shared/carousels/document_cells.rb:153:in `render_document'

app/views/shared/carousels/document_cells.rb:101:in `block in html_content'

app/views/shared/carousels/document_cells.rb:100:in `each'

app/views/shared/carousels/document_cells.rb:100:in `each_with_index'

app/views/shared/carousels/document_cells.rb:100:in `html_content'

lib/widgets/base.rb:113:in `block in content'

lib/widgets/enclosing.rb:106:in `block in enclose_with_element'

lib/widgets/enclosing.rb:106:in `enclose_with_element'

lib/widgets/base.rb:112:in `content'

lib/widgets/base.rb:141:in `widget'

app/views/shared/grids/document_grid.rb:64:in `html_content'

lib/widgets/base.rb:113:in `block in content'

lib/widgets/enclosing.rb:106:in `block in enclose_with_element'

lib/widgets/enclosing.rb:106:in `enclose_with_element'

lib/widgets/base.rb:112:in `content'

lib/widgets/base.rb:141:in `widget'

app/views/pdfs/errors/deleted.rb:103:in `block in render_books'

app/views/pdfs/errors/deleted.rb:100:in `render_books'

app/views/pdfs/errors/deleted.rb:9:in `document_content'

app/views/shared/filtered_document_page.rb:12:in `html_content'

lib/widgets/base.rb:113:in `block in content'

lib/widgets/enclosing.rb:106:in `block in enclose_with_element'

lib/widgets/enclosing.rb:106:in `enclose_with_element'

lib/widgets/base.rb:112:in `content'

app/views/pdfs/errors/deleted.rb:1:in `_app_views_pdfs_errors_deleted_rb___1526069321861683600_47137603496020'

app/controllers/application_controller.rb:728:in `render'

app/controllers/concerns/document_setup.rb:279:in `render_deleted'

app/controllers/concerns/document_view_conditions.rb:207:in `redirected_for_bad_data?'

app/controllers/concerns/document_view_conditions.rb:86:in `block in redirect_if_necessary!'

app/controllers/concerns/document_view_conditions.rb:86:in `each'

app/controllers/concerns/document_view_conditions.rb:86:in `detect'

app/controllers/concerns/document_view_conditions.rb:86:in `redirect_if_necessary!'

app/controllers/read2_controller.rb:255:in `setup_page'

app/controllers/read2_controller.rb:86:in `show'

lib/scribd/hypernova/instrumented_helpers.rb:22:in `instrumented_hypernova_render_support'

app/controllers/concerns/performance_tracking.rb:18:in `with_statsd_logging'

config/initializers/action_dispatch.rb:15:in `call'

lib/rack/periodically_validate_database_connections.rb:12:in `call'

lib/rack/scribd_proc_title.rb:36:in `call'

https://www.scribd.com/doc/388923809 1/2
7/30/2019 Action Controller: Exception caught

Request
Parameters:

{"id"=>"388923809"}

Toggle session dump

Toggle env dump

Response
Headers:

None

https://www.scribd.com/doc/388923809 2/2

S-ar putea să vă placă și