买了本书,《javascript 富应用开发》,里面提到了 holla 这个项目。我就 clone 了下来,redis 和 node 环境都配置好了,然后 rails server thin,运行服务器之后,发现 总是提示一个错误
Started GET "/" for 127.0.0.1 at 2013-12-26 22:39:01 +0800
Processing by AppController#index as HTML
Redirected to http://localhost:3000/authorize
Completed 302 Found in 1ms
**Started GET "/auth/twitter" for 127.0.0.1 at 2013-12-26 22:39:01 +0800**
Started GET "/auth/failure?message=timeout" for 127.0.0.1 at 2013-12-26 22:39:31 +0800
Processing by AuthorizeController#failure as HTML
Parameters: {"message"=>"timeout"}
Completed in 0ms
RuntimeError (OAuth failure - timeout):
app/controllers/authorize_controller.rb:8:in `failure'
Rendered /home/gechentuo/.rvm/gems/ruby-2.0.0-p247@railstutorial_rails_4_0/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.3ms)
Rendered /home/gechentuo/.rvm/gems/ruby-2.0.0-p247@railstutorial_rails_4_0/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (148.8ms)
Rendered /home/gechentuo/.rvm/gems/ruby-2.0.0-p247@railstutorial_rails_4_0/gems/actionpack-3.0.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (155.2ms)
这是为什么呢?是因为 auth/twitter的原因吗?总是timeout