soulseekah
(Gennady Kovshenin)
1
我正在运行 3.1.0-beta6,并遇到以下错误:
Started GET "/" for 92.62.56.207 at 2023-07-20 13:15:36 +0000
NoMethodError (undefined method `size' for #<Rack::Lint::InputWrapper:0x00007f528702bdf0 @input=#<StringIO:0x00007f529abd17f0>>):
lib/middleware/anonymous_cache.rb:334:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
lib/middleware/enforce_hostname.rb:24:in `call'
lib/middleware/request_tracker.rb:228:in `call'
有什么想法是我遗漏了什么,还是这是一个 bug?
soulseekah
(Gennady Kovshenin)
3
不,这是一个开发安装,在本地运行。所有 GET 请求都会出现这种情况,POST 请求则可以正常进行。没有任何插件,错误来自中间件内部。
1 个赞
soulseekah
(Gennady Kovshenin)
4
我更详细地分析了标准安装,发现 docker 镜像启动器使用 bundle exec config/unicorn_launcher -E production -c config/unicorn.conf.rb 来启动 unicorn。我改用了 RAILS_ENV=production bin/unicorn。我猜我错过了运行配置。问题解决了。
1 个赞
system
(system)
关闭
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.