Puma caught this error: undefined method `call' for :debug:Symbol
Puma caught this error: undefined method `call' for :debug:Symbol
我的 rails 应用程序是 5.1.2。一切正常,直到今天我在 rails s
.
时收到此错误
Use Ctrl-C to stop
2017-08-17 10:49:28 +0800: Rack app error handling request { GET / }
#<NoMethodError: undefined method `call' for :debug:Symbol
Did you mean? caller>
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.1.2/lib/active_support/deprecation/reporting.rb:21:in `block (2 levels) in warn'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.1.2/lib/active_support/deprecation/reporting.rb:21:in `each'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.1.2/lib/active_support/deprecation/reporting.rb:21:in `block in warn'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.1.2/lib/active_support/deprecation/reporting.rb:20:in `tap'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.1.2/lib/active_support/deprecation/reporting.rb:20:in `warn'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.1.2/lib/active_support/deprecation/instance_delegator.rb:20:in `warn'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.1.2/lib/active_support/deprecation/instance_delegator.rb:27:in `warn'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.1.2/lib/rails/application.rb:506:in `validate_secret_key_config!'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.1.2/lib/rails/application.rb:247:in `env_config'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.1.2/lib/rails/engine.rb:692:in `build_request'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.1.2/lib/rails/application.rb:518:in `build_request'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.1.2/lib/rails/engine.rb:521:in `call'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.9.1/lib/puma/configuration.rb:224:in `call'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:602:in `handle_request'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:435:in `process_client'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:299:in `block in run'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.9.1/lib/puma/thread_pool.rb:120:in `block in spawn_thread'
2017-08-17 10:49:28 +0800: Rack app error handling request { GET /favicon.ico }
#<NoMethodError: undefined method `call' for :debug:Symbol
Did you mean? caller>
我能想到的都试过了:
- 降级到 rails 5.1.0
- 已将 ruby 版本切换到 2.3.3 或 2.3.4
仍然没有运气。
感谢任何帮助。如果您需要更多信息,请告诉我。
谢谢!
看起来数据库不知何故损坏了。
由于它正在开发中,所以我只是rake db:drop db:create db:setup db:seed
。
希望这对某人有所帮助。
谢谢。
更新
我又运行陷入了这个问题。自己记下。
仔细检查 .env
文件。
我的 rails 应用程序是 5.1.2。一切正常,直到今天我在 rails s
.
Use Ctrl-C to stop
2017-08-17 10:49:28 +0800: Rack app error handling request { GET / }
#<NoMethodError: undefined method `call' for :debug:Symbol
Did you mean? caller>
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.1.2/lib/active_support/deprecation/reporting.rb:21:in `block (2 levels) in warn'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.1.2/lib/active_support/deprecation/reporting.rb:21:in `each'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.1.2/lib/active_support/deprecation/reporting.rb:21:in `block in warn'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.1.2/lib/active_support/deprecation/reporting.rb:20:in `tap'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.1.2/lib/active_support/deprecation/reporting.rb:20:in `warn'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.1.2/lib/active_support/deprecation/instance_delegator.rb:20:in `warn'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.1.2/lib/active_support/deprecation/instance_delegator.rb:27:in `warn'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.1.2/lib/rails/application.rb:506:in `validate_secret_key_config!'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.1.2/lib/rails/application.rb:247:in `env_config'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.1.2/lib/rails/engine.rb:692:in `build_request'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.1.2/lib/rails/application.rb:518:in `build_request'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/railties-5.1.2/lib/rails/engine.rb:521:in `call'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.9.1/lib/puma/configuration.rb:224:in `call'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:602:in `handle_request'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:435:in `process_client'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.9.1/lib/puma/server.rb:299:in `block in run'
/Users/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/puma-3.9.1/lib/puma/thread_pool.rb:120:in `block in spawn_thread'
2017-08-17 10:49:28 +0800: Rack app error handling request { GET /favicon.ico }
#<NoMethodError: undefined method `call' for :debug:Symbol
Did you mean? caller>
我能想到的都试过了:
- 降级到 rails 5.1.0
- 已将 ruby 版本切换到 2.3.3 或 2.3.4
仍然没有运气。
感谢任何帮助。如果您需要更多信息,请告诉我。
谢谢!
看起来数据库不知何故损坏了。
由于它正在开发中,所以我只是rake db:drop db:create db:setup db:seed
。
希望这对某人有所帮助。
谢谢。
更新
我又运行陷入了这个问题。自己记下。
仔细检查 .env
文件。