就在最近,我的private_pub设置停止工作。我不确定为什么会这样,因为我发现很难诊断以下错误的问题:
[ERROR] [Faye::RackAdapter] input must be a string or IO
下面是一个完整的堆栈跟踪:
2012-04-18 13:33:32 [ERROR] [Faye::RackAdapter] input must be a string or IO
Backtrace:
/ruby/1.9.1/gems/yajl-ruby-1.1.0/lib/yajl.rb:36:in `parse'
/ruby/1.9.1/gems/yajl-ruby-1.1.0/lib/yajl.rb:36:in `parse'
/ruby/1.9.1/gems/faye-0.8.2/lib/faye/adapters/rack_adapter.rb:98:in `handle_request'
/ruby/1.9.1/gems/faye-0.8.2/lib/faye/adapters/rack_adapter.rb:91:in `call'
/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:80:in `block in pre_process'
/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:78:in `catch'
/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:78:in `pre_process'
/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:53:in `process'
/ruby/1.9.1/gems/faye-websocket-0.4.5/lib/faye/adapters/thin.rb:41:in `process'
/ruby/1.9.1/gems/thin-1.3.1/lib/thin/connection.rb:38:in `receive_data'
/ruby/1.9.1/gems/faye-websocket-0.4.5/lib/faye/adapters/thin.rb:45:in `receive_data'
/ruby/1.9.1/gems/eventmachine-1.0.0.beta.4/lib/eventmachine.rb:179:in `run_machine'
/ruby/1.9.1/gems/eventmachine-1.0.0.beta.4/lib/eventmachine.rb:179:in `run'
/ruby/1.9.1/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
/ruby/1.9.1/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start'
/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
/ruby/1.9.1/gems/thin-1.3.1/bin/thin:6:in `<top (required)>'
/ruby/1.9.1/bin/thin:23:in `load'
/ruby/1.9.1/bin/thin:23:in `<main>'
关于如何调试/解决此问题的任何想法?
我有同样的问题。我正在尽我所能寻找答案,但没有正常的答案。这里发现了一个问题,但没有很好地解释。如果它对你有帮助,我会很高兴。
请,如果有人知道为什么会发生这样的错误 - 帮助解决这个问题。这是非常需要的。