Skip to content

Instantly share code, notes, and snippets.

@timdiggins
Last active February 20, 2018 18:21
Show Gist options
  • Save timdiggins/3eba95ba752092e3648b9a3a932df41b to your computer and use it in GitHub Desktop.
Save timdiggins/3eba95ba752092e3648b9a3a932df41b to your computer and use it in GitHub Desktop.
traceback for thredded demo (v0.14.2) with onebox (1.8.39) Using content with http
RuntimeError in Thredded::Topics#show
Showing /Users/tim/workspaces/bws/thredded/app/views/thredded/posts_common/_content.html.erb where line #2 raised:
Unable to read pdf file: https://www.poettker.com/files/pdf/Produktkatalog_170912.pdf
Extracted source (around line #14):
def data
pdf_info = get_pdf_info
raise "Unable to read pdf file: #{@url}" if pdf_info.nil?
result = { link: link,
title: pdf_info[:name],
Trace of template inclusion: /Users/tim/workspaces/bws/thredded/app/views/thredded/posts/_content.html.erb, /Users/tim/workspaces/bws/thredded/app/views/thredded/topics/show.html.erb
Rails.root: /Users/tim/workspaces/bws/thredded/spec/dummy
Application Trace | Framework Trace | Full Trace
onebox (1.8.39) lib/onebox/engine/pdf_onebox.rb:14:in `data'
onebox (1.8.39) lib/onebox/engine.rb:66:in `block in record'
activesupport (5.0.6) lib/active_support/cache.rb:300:in `block in fetch'
activesupport (5.0.6) lib/active_support/cache.rb:593:in `block in save_block_result_to_cache'
activesupport (5.0.6) lib/active_support/cache.rb:562:in `block in instrument'
activesupport (5.0.6) lib/active_support/notifications.rb:166:in `instrument'
activesupport (5.0.6) lib/active_support/cache.rb:562:in `instrument'
activesupport (5.0.6) lib/active_support/cache.rb:592:in `save_block_result_to_cache'
activesupport (5.0.6) lib/active_support/cache.rb:300:in `fetch'
onebox (1.8.39) lib/onebox/engine.rb:66:in `record'
onebox (1.8.39) lib/onebox/layout_support.rb:9:in `layout'
onebox (1.8.39) lib/onebox/layout_support.rb:13:in `to_html'
onebox (1.8.39) lib/onebox/preview.rb:35:in `engine_html'
onebox (1.8.39) lib/onebox/preview.rb:16:in `to_s'
/Users/tim/workspaces/bws/thredded/lib/thredded/html_pipeline/onebox_filter.rb:75:in `render_onebox'
/Users/tim/workspaces/bws/thredded/lib/thredded/html_pipeline/onebox_filter.rb:65:in `block in render_onebox_with_cache'
activesupport (5.0.6) lib/active_support/cache.rb:300:in `block in fetch'
activesupport (5.0.6) lib/active_support/cache.rb:593:in `block in save_block_result_to_cache'
activesupport (5.0.6) lib/active_support/cache.rb:562:in `block in instrument'
activesupport (5.0.6) lib/active_support/notifications.rb:166:in `instrument'
activesupport (5.0.6) lib/active_support/cache.rb:562:in `instrument'
activesupport (5.0.6) lib/active_support/cache.rb:592:in `save_block_result_to_cache'
activesupport (5.0.6) lib/active_support/cache.rb:300:in `fetch'
/Users/tim/workspaces/bws/thredded/lib/thredded/html_pipeline/onebox_filter.rb:63:in `render_onebox_with_cache'
/Users/tim/workspaces/bws/thredded/lib/thredded/html_pipeline/onebox_filter.rb:52:in `block in call'
nokogiri (1.8.2) lib/nokogiri/xml/node_set.rb:190:in `block in each'
nokogiri (1.8.2) lib/nokogiri/xml/node_set.rb:189:in `upto'
nokogiri (1.8.2) lib/nokogiri/xml/node_set.rb:189:in `each'
/Users/tim/workspaces/bws/thredded/lib/thredded/html_pipeline/onebox_filter.rb:49:in `call'
html-pipeline (2.7.1) lib/html/pipeline/filter.rb:130:in `call'
html-pipeline (2.7.1) lib/html/pipeline.rb:131:in `block in perform_filter'
html-pipeline (2.7.1) lib/html/pipeline.rb:169:in `instrument'
html-pipeline (2.7.1) lib/html/pipeline.rb:130:in `perform_filter'
html-pipeline (2.7.1) lib/html/pipeline.rb:116:in `block (2 levels) in call'
html-pipeline (2.7.1) lib/html/pipeline.rb:115:in `each'
html-pipeline (2.7.1) lib/html/pipeline.rb:115:in `inject'
html-pipeline (2.7.1) lib/html/pipeline.rb:115:in `block in call'
html-pipeline (2.7.1) lib/html/pipeline.rb:169:in `instrument'
html-pipeline (2.7.1) lib/html/pipeline.rb:113:in `call'
/Users/tim/workspaces/bws/thredded/lib/thredded/content_formatter.rb:97:in `format_content'
/Users/tim/workspaces/bws/thredded/app/models/concerns/thredded/post_common.rb:35:in `filtered_content'
/Users/tim/workspaces/bws/thredded/app/view_models/thredded/post_view.rb:6:in `filtered_content'
/Users/tim/workspaces/bws/thredded/app/views/thredded/posts_common/_content.html.erb:2:in `___sers_tim_workspaces_bws_thredded_app_views_thredded_posts_common__content_html_erb___1748207800108822930_70121092236000'
actionview (5.0.6) lib/action_view/template.rb:159:in `block in render'
activesupport (5.0.6) lib/active_support/notifications.rb:166:in `instrument'
actionview (5.0.6) lib/action_view/template.rb:354:in `instrument'
actionview (5.0.6) lib/action_view/template.rb:157:in `render'
rack-mini-profiler (0.10.7) lib/mini_profiler/profiling_methods.rb:102:in `block in profile_method'
actionview (5.0.6) lib/action_view/renderer/partial_renderer.rb:343:in `render_partial'
actionview (5.0.6) lib/action_view/renderer/partial_renderer.rb:311:in `block in render'
actionview (5.0.6) lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument'
activesupport (5.0.6) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (5.0.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (5.0.6) lib/active_support/notifications.rb:164:in `instrument'
actionview (5.0.6) lib/action_view/renderer/abstract_renderer.rb:41:in `instrument'
actionview (5.0.6) lib/action_view/renderer/partial_renderer.rb:310:in `render'
actionview (5.0.6) lib/action_view/renderer/renderer.rb:47:in `render_partial'
actionview (5.0.6) lib/action_view/helpers/rendering_helper.rb:35:in `render'
/Users/tim/workspaces/bws/thredded/app/views/thredded/posts/_content.html.erb:1:in `___sers_tim_workspaces_bws_thredded_app_views_thredded_posts__content_html_erb__1962000741561639535_70121092351740'
actionview (5.0.6) lib/action_view/template.rb:159:in `block in render'
activesupport (5.0.6) lib/active_support/notifications.rb:166:in `instrument'
actionview (5.0.6) lib/action_view/template.rb:354:in `instrument'
actionview (5.0.6) lib/action_view/template.rb:157:in `render'
rack-mini-profiler (0.10.7) lib/mini_profiler/profiling_methods.rb:102:in `block in profile_method'
actionview (5.0.6) lib/action_view/renderer/partial_renderer.rb:343:in `render_partial'
actionview (5.0.6) lib/action_view/renderer/partial_renderer.rb:311:in `block in render'
actionview (5.0.6) lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument'
activesupport (5.0.6) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (5.0.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (5.0.6) lib/active_support/notifications.rb:164:in `instrument'
actionview (5.0.6) lib/action_view/renderer/abstract_renderer.rb:41:in `instrument'
actionview (5.0.6) lib/action_view/renderer/partial_renderer.rb:310:in `render'
/Users/tim/workspaces/bws/thredded/lib/thredded/collection_to_strings_with_cache_renderer.rb:59:in `block in render_partials'
/Users/tim/workspaces/bws/thredded/lib/thredded/collection_to_strings_with_cache_renderer.rb:58:in `map'
/Users/tim/workspaces/bws/thredded/lib/thredded/collection_to_strings_with_cache_renderer.rb:58:in `render_partials'
/Users/tim/workspaces/bws/thredded/lib/thredded/collection_to_strings_with_cache_renderer.rb:30:in `block in render_collection_to_strings_with_cache'
actionview (5.0.6) lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument'
activesupport (5.0.6) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (5.0.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (5.0.6) lib/active_support/notifications.rb:164:in `instrument'
actionview (5.0.6) lib/action_view/renderer/abstract_renderer.rb:41:in `instrument'
/Users/tim/workspaces/bws/thredded/lib/thredded/collection_to_strings_with_cache_renderer.rb:16:in `render_collection_to_strings_with_cache'
/Users/tim/workspaces/bws/thredded/app/helpers/thredded/render_helper.rb:10:in `render_collection_to_strings_with_cache'
/Users/tim/workspaces/bws/thredded/app/helpers/thredded/application_helper.rb:75:in `render_posts'
/Users/tim/workspaces/bws/thredded/app/views/thredded/topics/show.html.erb:15:in `block (2 levels) in ___sers_tim_workspaces_bws_thredded_app_views_thredded_topics_show_html_erb__3162228453009914797_70121094551080'
actionview (5.0.6) lib/action_view/helpers/capture_helper.rb:39:in `block in capture'
actionview (5.0.6) lib/action_view/helpers/capture_helper.rb:203:in `with_output_buffer'
actionview (5.0.6) lib/action_view/helpers/capture_helper.rb:39:in `capture'
actionview (5.0.6) lib/action_view/helpers/tag_helper.rb:107:in `content_tag'
/Users/tim/workspaces/bws/thredded/app/views/thredded/topics/show.html.erb:7:in `block in ___sers_tim_workspaces_bws_thredded_app_views_thredded_topics_show_html_erb__3162228453009914797_70121094551080'
actionview (5.0.6) lib/action_view/helpers/capture_helper.rb:39:in `block in capture'
actionview (5.0.6) lib/action_view/helpers/capture_helper.rb:203:in `with_output_buffer'
actionview (5.0.6) lib/action_view/helpers/capture_helper.rb:39:in `capture'
actionview (5.0.6) lib/action_view/helpers/capture_helper.rb:153:in `content_for'
/Users/tim/workspaces/bws/thredded/app/helpers/thredded/application_helper.rb:32:in `thredded_page'
/Users/tim/workspaces/bws/thredded/app/views/thredded/topics/show.html.erb:6:in `___sers_tim_workspaces_bws_thredded_app_views_thredded_topics_show_html_erb__3162228453009914797_70121094551080'
actionview (5.0.6) lib/action_view/template.rb:159:in `block in render'
activesupport (5.0.6) lib/active_support/notifications.rb:166:in `instrument'
actionview (5.0.6) lib/action_view/template.rb:354:in `instrument'
actionview (5.0.6) lib/action_view/template.rb:157:in `render'
rack-mini-profiler (0.10.7) lib/mini_profiler/profiling_methods.rb:102:in `block in profile_method'
actionview (5.0.6) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
actionview (5.0.6) lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument'
activesupport (5.0.6) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (5.0.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (5.0.6) lib/active_support/notifications.rb:164:in `instrument'
actionview (5.0.6) lib/action_view/renderer/abstract_renderer.rb:41:in `instrument'
actionview (5.0.6) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
actionview (5.0.6) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
actionview (5.0.6) lib/action_view/renderer/template_renderer.rb:52:in `render_template'
actionview (5.0.6) lib/action_view/renderer/template_renderer.rb:14:in `render'
actionview (5.0.6) lib/action_view/renderer/renderer.rb:42:in `render_template'
actionview (5.0.6) lib/action_view/renderer/renderer.rb:23:in `render'
actionview (5.0.6) lib/action_view/rendering.rb:104:in `_render_template'
actionpack (5.0.6) lib/action_controller/metal/streaming.rb:217:in `_render_template'
actionview (5.0.6) lib/action_view/rendering.rb:83:in `render_to_body'
actionpack (5.0.6) lib/action_controller/metal/rendering.rb:52:in `render_to_body'
actionpack (5.0.6) lib/action_controller/metal/renderers.rb:142:in `render_to_body'
actionpack (5.0.6) lib/abstract_controller/rendering.rb:26:in `render'
actionpack (5.0.6) lib/action_controller/metal/rendering.rb:36:in `render'
actionpack (5.0.6) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
activesupport (5.0.6) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/Users/tim/.rvm/rubies/ruby-2.4.3/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'
activesupport (5.0.6) lib/active_support/core_ext/benchmark.rb:12:in `ms'
actionpack (5.0.6) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
actionpack (5.0.6) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
activerecord (5.0.6) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
actionpack (5.0.6) lib/action_controller/metal/instrumentation.rb:43:in `render'
actionpack (5.0.6) lib/action_controller/metal/implicit_render.rb:36:in `default_render'
actionpack (5.0.6) lib/action_controller/metal/basic_implicit_render.rb:4:in `block in send_action'
actionpack (5.0.6) lib/action_controller/metal/basic_implicit_render.rb:4:in `tap'
actionpack (5.0.6) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
actionpack (5.0.6) lib/abstract_controller/base.rb:188:in `process_action'
actionpack (5.0.6) lib/action_controller/metal/rendering.rb:30:in `process_action'
actionpack (5.0.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
activesupport (5.0.6) lib/active_support/callbacks.rb:126:in `call'
activesupport (5.0.6) lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
activesupport (5.0.6) lib/active_support/callbacks.rb:455:in `call'
activesupport (5.0.6) lib/active_support/callbacks.rb:101:in `__run_callbacks__'
activesupport (5.0.6) lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
activesupport (5.0.6) lib/active_support/callbacks.rb:90:in `run_callbacks'
actionpack (5.0.6) lib/abstract_controller/callbacks.rb:19:in `process_action'
actionpack (5.0.6) lib/action_controller/metal/rescue.rb:20:in `process_action'
actionpack (5.0.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
activesupport (5.0.6) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (5.0.6) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (5.0.6) lib/active_support/notifications.rb:164:in `instrument'
actionpack (5.0.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (5.0.6) lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
activerecord (5.0.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (5.0.6) lib/abstract_controller/base.rb:126:in `process'
actionview (5.0.6) lib/action_view/rendering.rb:30:in `process'
rack-mini-profiler (0.10.7) lib/mini_profiler/profiling_methods.rb:102:in `block in profile_method'
actionpack (5.0.6) lib/action_controller/metal.rb:190:in `dispatch'
actionpack (5.0.6) lib/action_controller/metal.rb:262:in `dispatch'
actionpack (5.0.6) lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
actionpack (5.0.6) lib/action_dispatch/routing/route_set.rb:32:in `serve'
actionpack (5.0.6) lib/action_dispatch/journey/router.rb:39:in `block in serve'
actionpack (5.0.6) lib/action_dispatch/journey/router.rb:26:in `each'
actionpack (5.0.6) lib/action_dispatch/journey/router.rb:26:in `serve'
actionpack (5.0.6) lib/action_dispatch/routing/route_set.rb:727:in `call'
railties (5.0.6) lib/rails/engine.rb:522:in `call'
railties (5.0.6) lib/rails/railtie.rb:193:in `public_send'
railties (5.0.6) lib/rails/railtie.rb:193:in `method_missing'
actionpack (5.0.6) lib/action_dispatch/routing/mapper.rb:17:in `block in <class:Constraints>'
actionpack (5.0.6) lib/action_dispatch/routing/mapper.rb:46:in `serve'
actionpack (5.0.6) lib/action_dispatch/journey/router.rb:39:in `block in serve'
actionpack (5.0.6) lib/action_dispatch/journey/router.rb:26:in `each'
actionpack (5.0.6) lib/action_dispatch/journey/router.rb:26:in `serve'
actionpack (5.0.6) lib/action_dispatch/routing/route_set.rb:727:in `call'
http_accept_language (2.1.1) lib/http_accept_language/middleware.rb:14:in `call'
rack (2.0.4) lib/rack/etag.rb:25:in `call'
rack (2.0.4) lib/rack/conditional_get.rb:25:in `call'
rack (2.0.4) lib/rack/head.rb:12:in `call'
rack (2.0.4) lib/rack/session/abstract/id.rb:232:in `context'
rack (2.0.4) lib/rack/session/abstract/id.rb:226:in `call'
actionpack (5.0.6) lib/action_dispatch/middleware/cookies.rb:613:in `call'
actionpack (5.0.6) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
activesupport (5.0.6) lib/active_support/callbacks.rb:97:in `__run_callbacks__'
activesupport (5.0.6) lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
activesupport (5.0.6) lib/active_support/callbacks.rb:90:in `run_callbacks'
actionpack (5.0.6) lib/action_dispatch/middleware/callbacks.rb:36:in `call'
actionpack (5.0.6) lib/action_dispatch/middleware/executor.rb:12:in `call'
actionpack (5.0.6) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
actionpack (5.0.6) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app'
web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call'
web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch'
web-console (3.5.1) lib/web_console/middleware.rb:18:in `call'
actionpack (5.0.6) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
railties (5.0.6) lib/rails/rack/logger.rb:36:in `call_app'
railties (5.0.6) lib/rails/rack/logger.rb:24:in `block in call'
activesupport (5.0.6) lib/active_support/tagged_logging.rb:69:in `block in tagged'
activesupport (5.0.6) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (5.0.6) lib/active_support/tagged_logging.rb:69:in `tagged'
railties (5.0.6) lib/rails/rack/logger.rb:24:in `call'
request_store (1.4.0) lib/request_store/middleware.rb:19:in `call'
actionpack (5.0.6) lib/action_dispatch/middleware/request_id.rb:24:in `call'
rack (2.0.4) lib/rack/method_override.rb:22:in `call'
rack (2.0.4) lib/rack/runtime.rb:22:in `call'
activesupport (5.0.6) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
actionpack (5.0.6) lib/action_dispatch/middleware/executor.rb:12:in `call'
actionpack (5.0.6) lib/action_dispatch/middleware/static.rb:136:in `call'
rack (2.0.4) lib/rack/sendfile.rb:111:in `call'
rack-mini-profiler (0.10.7) lib/mini_profiler/profiler.rb:282:in `call'
railties (5.0.6) lib/rails/engine.rb:522:in `call'
railties (5.0.6) lib/rails/railtie.rb:193:in `public_send'
railties (5.0.6) lib/rails/railtie.rb:193:in `method_missing'
rack (2.0.4) lib/rack/tempfile_reaper.rb:15:in `call'
rack (2.0.4) lib/rack/lint.rb:49:in `_call'
rack (2.0.4) lib/rack/lint.rb:37:in `call'
rack (2.0.4) lib/rack/show_exceptions.rb:23:in `call'
rack (2.0.4) lib/rack/common_logger.rb:33:in `call'
rack (2.0.4) lib/rack/chunked.rb:54:in `call'
rack (2.0.4) lib/rack/content_length.rb:15:in `call'
puma (3.11.2) lib/puma/configuration.rb:225:in `call'
puma (3.11.2) lib/puma/server.rb:624:in `handle_request'
puma (3.11.2) lib/puma/server.rb:438:in `process_client'
puma (3.11.2) lib/puma/server.rb:302:in `block in run'
puma (3.11.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment