PrivatePub& Faye-Websocket无法正常工作

时间:2012-05-04 14:03:23

标签: ruby websocket faye

就在最近,我的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>'

有关如何调试此问题的任何想法/修复它?

1 个答案:

答案 0 :(得分:0)

我有同样的问题。我到处都在寻找答案,但没有正常的答案。一个问题here已找到但未解释为好。如果它对你有所帮助我会很高兴。

如果有人知道为什么会发生这样的错误请帮助。这是非常需要的。