Onebox fails with "String contains null byte"


(Carlo Kok) #1

When I put this link in my local discourse install (Talk.remobjects.com) I get a 500 error:

Log link below, what am I doing wrong?:

soonebox.txt (21.2 KB)


(Kane York) #2

First relevant part of the log that I saw:

ArgumentError (string contains null byte):
  lib/oneboxer.rb:35:in `cached_onebox'
  app/models/post_analyzer.rb:16:in `block in cook'
  ...
  lib/oneboxer.rb:75:in `apply'
  app/models/post_analyzer.rb:14:in `cook'

(Carlo Kok) #3

What does that mean? There weren’t any \0 chars in the input I tried to post.


(Carlo Kok) #4

Fwiw I still get an error for posting stackoverflow links on my discourse instance, although a slightly different one now:

Processing by OneboxController#show as HTML
  Parameters: {"url"=>"http://stackoverflow.com/questions/10318573/exporting-several-xtragrid-controls-to-a-single-excel-file", "refresh"=>"false"}
Completed 500 Internal Server Error in 4ms

TypeError (can't convert Symbol into Integer):
  lib/oneboxer.rb:25:in `[]'
  lib/oneboxer.rb:25:in `preview'
  app/controllers/onebox_controller.rb:6:in `show'
  lib/middleware/anonymous_cache.rb:119:in `call'
  config/initializers/quiet_logger.rb:10:in `call_with_quiet_assets'
  config/initializers/silence_logger.rb:19:in `call'

Any idea what I can look at to get rid of this error? I tried killing the reddis cache but that didn’t help.


(Sam Saffron) #5

Are you on latest? Are you running our docker setup?


(Carlo Kok) #6

latest from monday, I’m using the “ubuntu” setup.


(Jeff Atwood) #7

Let’s see, using the URL you provided:

Looks OK to me.


(Sam Saffron) #8

I am also seeing these error in our logs … we will get to the bottom of it.


(Sam Saffron) #9

I am pretty sure I fixed this last week:

https://github.com/discourse/discourse/commit/0bc3525b104da074c99c99d95722632764a1c681


(Carlo Kok) #10

The good news is that it doesn’t fail to post it anymore, the bad news is that I still don’t get a onebox for a stack overflow post. any idea what would trigger that “string contains null byte” with this?

2014-06-02T17:26:42Z 31111 TID-a3a48 WARN: {:current_db=>"default", :current_hostname=>"talk.remobjects.com", :url=>"http://stackoverflow.com/questions/9452701/ukkonens-suffix-tree-algorithm-in-plain-english/9513423"}
2014-06-02T17:26:42Z 31111 TID-a3a48 WARN: string contains null byte
2014-06-02T17:26:42Z 31111 TID-a3a48 WARN: /path/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.0/lib/multi_json/adapters/oj.rb:15:in `load'
/path/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.0/lib/multi_json/adapters/oj.rb:15:in `load'
/path/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.0/lib/multi_json/adapter.rb:20:in `load'
/path/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.0/lib/multi_json.rb:119:in `load'
/path/vendor/bundle/ruby/1.9.1/gems/onebox-1.3.4/lib/onebox/engine/json.rb:7:in `raw'
/path/vendor/bundle/ruby/1.9.1/gems/onebox-1.3.4/lib/onebox/engine/stack_exchange_onebox.rb:28:in `data'
/path/vendor/bundle/ruby/1.9.1/gems/onebox-1.3.4/lib/onebox/engine.rb:44:in `block in record'
/path/vendor/bundle/ruby/1.9.1/gems/onebox-1.3.4/lib/onebox/engine.rb:44:in `fetch'
/path/vendor/bundle/ruby/1.9.1/gems/onebox-1.3.4/lib/onebox/engine.rb:44:in `record'
/path/vendor/bundle/ruby/1.9.1/gems/onebox-1.3.4/lib/onebox/layout_support.rb:9:in `layout'
/path/vendor/bundle/ruby/1.9.1/gems/onebox-1.3.4/lib/onebox/layout_support.rb:13:in `to_html'
/path/vendor/bundle/ruby/1.9.1/gems/onebox-1.3.4/lib/onebox/preview.rb:14:in `to_s'
/path/lib/oneboxer.rb:127:in `block in onebox_raw'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/cache.rb:296:in `block in fetch'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/cache.rb:587:in `block in save_block_result_to_cache'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/cache.rb:548:in `instrument'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/cache.rb:586:in `save_block_result_to_cache'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/cache.rb:296:in `fetch'
/path/lib/oneboxer.rb:121:in `onebox_raw'
/path/lib/oneboxer.rb:25:in `preview'
/path/app/controllers/onebox_controller.rb:6:in `show'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/abstract_controller/base.rb:189:in `process_action'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal/rendering.rb:10:in `process_action'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:113:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:113:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:229:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:229:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:86:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:86:in `run_callbacks'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal/rescue.rb:29:in `process_action'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/notifications.rb:159:in `block in instrument'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/notifications.rb:159:in `instrument'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
/path/vendor/bundle/ruby/1.9.1/gems/activerecord-4.1.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/abstract_controller/base.rb:136:in `process'
/path/vendor/bundle/ruby/1.9.1/gems/actionview-4.1.1/lib/action_view/rendering.rb:30:in `process'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal.rb:195:in `dispatch'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal.rb:231:in `block in action'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/routing/route_set.rb:80:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/routing/route_set.rb:48:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/journey/router.rb:71:in `block in call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/journey/router.rb:59:in `each'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/journey/router.rb:59:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/routing/route_set.rb:676:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.5.2/lib/rack/protection/frame_options.rb:31:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:186:in `call!'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:164:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:186:in `call!'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:164:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:186:in `call!'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:164:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:186:in `call!'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:164:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:186:in `call!'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:164:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:186:in `call!'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:164:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:186:in `call!'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:164:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/builder.rb:59:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/conditionalget.rb:25:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
/path/lib/middleware/anonymous_cache.rb:119:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/flash.rb:254:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/cookies.rb:560:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/message_bus-0.9.4/lib/message_bus/rack/middleware.rb:55:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activerecord-4.1.1/lib/active_record/query_cache.rb:36:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activerecord-4.1.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:82:in `run_callbacks'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/logster-0.0.10/lib/logster/middleware/reporter.rb:23:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/railties-4.1.1/lib/rails/rack/logger.rb:38:in `call_app'
/path/vendor/bundle/ruby/1.9.1/gems/railties-4.1.1/lib/rails/rack/logger.rb:22:in `call'
/path/config/initializers/quiet_logger.rb:10:in `call_with_quiet_assets'
/path/config/initializers/silence_logger.rb:26:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/request_id.rb:21:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/railties-4.1.1/lib/rails/engine.rb:514:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/railties-4.1.1/lib/rails/application.rb:144:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/railties-4.1.1/lib/rails/railtie.rb:194:in `public_send'
/path/vendor/bundle/ruby/1.9.1/gems/railties-4.1.1/lib/rails/railtie.rb:194:in `method_missing'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:138:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/connection.rb:82:in `block in pre_process'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/connection.rb:80:in `catch'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/connection.rb:80:in `pre_process'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/connection.rb:55:in `process'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/connection.rb:41:in `receive_data'
/path/vendor/bundle/ruby/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
/path/vendor/bundle/ruby/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/backends/base.rb:73:in `start'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/server.rb:162:in `start'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/controllers/controller.rb:87:in `start'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/runner.rb:200:in `run_command'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/runner.rb:156:in `run!'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/bin/thin:6:in `<top (required)>'
/path/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
/path/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'

==> production.log <==
exception: string contains null byte
context: {:current_db=>"default", :current_hostname=>"talk.remobjects.com", :url=>"http://stackoverflow.com/questions/9452701/ukkonens-suffix-tree-algorithm-in-plain-english/9513423"}
backtrace: /path/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.0/lib/multi_json/adapters/oj.rb:15:in `load'
/path/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.0/lib/multi_json/adapters/oj.rb:15:in `load'
/path/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.0/lib/multi_json/adapter.rb:20:in `load'
/path/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.0/lib/multi_json.rb:119:in `load'
/path/vendor/bundle/ruby/1.9.1/gems/onebox-1.3.4/lib/onebox/engine/json.rb:7:in `raw'
/path/vendor/bundle/ruby/1.9.1/gems/onebox-1.3.4/lib/onebox/engine/stack_exchange_onebox.rb:28:in `data'
/path/vendor/bundle/ruby/1.9.1/gems/onebox-1.3.4/lib/onebox/engine.rb:44:in `block in record'
/path/vendor/bundle/ruby/1.9.1/gems/onebox-1.3.4/lib/onebox/engine.rb:44:in `fetch'
/path/vendor/bundle/ruby/1.9.1/gems/onebox-1.3.4/lib/onebox/engine.rb:44:in `record'
/path/vendor/bundle/ruby/1.9.1/gems/onebox-1.3.4/lib/onebox/layout_support.rb:9:in `layout'
/path/vendor/bundle/ruby/1.9.1/gems/onebox-1.3.4/lib/onebox/layout_support.rb:13:in `to_html'
/path/vendor/bundle/ruby/1.9.1/gems/onebox-1.3.4/lib/onebox/preview.rb:14:in `to_s'
/path/lib/oneboxer.rb:127:in `block in onebox_raw'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/cache.rb:296:in `block in fetch'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/cache.rb:587:in `block in save_block_result_to_cache'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/cache.rb:548:in `instrument'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/cache.rb:586:in `save_block_result_to_cache'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/cache.rb:296:in `fetch'
/path/lib/oneboxer.rb:121:in `onebox_raw'
/path/lib/oneboxer.rb:25:in `preview'
/path/app/controllers/onebox_controller.rb:6:in `show'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/abstract_controller/base.rb:189:in `process_action'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal/rendering.rb:10:in `process_action'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:113:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:113:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:229:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:229:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:86:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:86:in `run_callbacks'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal/rescue.rb:29:in `process_action'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/notifications.rb:159:in `block in instrument'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/notifications.rb:159:in `instrument'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
/path/vendor/bundle/ruby/1.9.1/gems/activerecord-4.1.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/abstract_controller/base.rb:136:in `process'
/path/vendor/bundle/ruby/1.9.1/gems/actionview-4.1.1/lib/action_view/rendering.rb:30:in `process'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal.rb:195:in `dispatch'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_controller/metal.rb:231:in `block in action'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/routing/route_set.rb:80:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/routing/route_set.rb:80:in `dispatch'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/routing/route_set.rb:48:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/journey/router.rb:71:in `block in call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/journey/router.rb:59:in `each'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/journey/router.rb:59:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/routing/route_set.rb:676:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.5.2/lib/rack/protection/frame_options.rb:31:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:186:in `call!'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:164:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:186:in `call!'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:164:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:186:in `call!'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:164:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:186:in `call!'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:164:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:186:in `call!'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:164:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:186:in `call!'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:164:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:186:in `call!'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/strategy.rb:164:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/omniauth-1.2.1/lib/omniauth/builder.rb:59:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/conditionalget.rb:25:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
/path/lib/middleware/anonymous_cache.rb:119:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/flash.rb:254:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/cookies.rb:560:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/message_bus-0.9.4/lib/message_bus/rack/middleware.rb:55:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activerecord-4.1.1/lib/active_record/query_cache.rb:36:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/activerecord-4.1.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/path/vendor/bundle/ruby/1.9.1/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:82:in `run_callbacks'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/logster-0.0.10/lib/logster/middleware/reporter.rb:23:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/railties-4.1.1/lib/rails/rack/logger.rb:38:in `call_app'
/path/vendor/bundle/ruby/1.9.1/gems/railties-4.1.1/lib/rails/rack/logger.rb:22:in `call'
/path/config/initializers/quiet_logger.rb:10:in `call_with_quiet_assets'
/path/config/initializers/silence_logger.rb:26:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/actionpack-4.1.1/lib/action_dispatch/middleware/request_id.rb:21:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/railties-4.1.1/lib/rails/engine.rb:514:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/railties-4.1.1/lib/rails/application.rb:144:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/railties-4.1.1/lib/rails/railtie.rb:194:in `public_send'
/path/vendor/bundle/ruby/1.9.1/gems/railties-4.1.1/lib/rails/railtie.rb:194:in `method_missing'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:138:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'
/path/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/connection.rb:82:in `block in pre_process'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/connection.rb:80:in `catch'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/connection.rb:80:in `pre_process'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/connection.rb:55:in `process'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/connection.rb:41:in `receive_data'
/path/vendor/bundle/ruby/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
/path/vendor/bundle/ruby/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/backends/base.rb:73:in `start'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/server.rb:162:in `start'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/controllers/controller.rb:87:in `start'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/runner.rb:200:in `run_command'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/runner.rb:156:in `run!'
/path/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/bin/thin:6:in `<top (required)>'
/path/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
/path/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
  Rendered text template (0.0ms)
Completed 404 Not Found in 203ms (Views: 0.8ms | ActiveRecord: 0.7ms)
Started GET "/draft.json?draft_key=new_private_message" for 88.26.218.44 at 2014-06-02 17:26:42 +0000
Processing by DraftController#show as JSON
  Parameters: {"draft_key"=>"new_private_message"}
Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 2.1ms)



(Sam Saffron) #11

This topic was automatically closed after 3 days. New replies are no longer allowed.