NoMethodError on development install

I’m running 3.1.0-beta6 and getting the following error:

Started GET "/" for 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'

Any ideas what I’m missing or is this a bug?

It’s this a standard install? Do all requests do this? Any plugins?

Nope, this is a development install, running locally. All GET requests do this, POST requests go through fine. No plugins whatsoever, the error comes from within the middleware.

1 Like

I analyzed the standard install in much more detail and found that the docker image launcher uses bundle exec config/unicorn_launcher -E production -c config/unicorn.conf.rb to launch unicorn. I used RAILS_ENV=production bin/unicorn instead. I guess I missed the run configuration. Problem solved.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.