# NoMethodError on development install

**URL:** <https://meta.discourse.org/t/nomethoderror-on-development-install/272294>\
**Category:** Self-hosting\
**Tags:** dev-install\
**Created:** [July 20, 2023, 1:23pm UTC](https://meta.discourse.org/t/nomethoderror-on-development-install/272294 "2023-07-20T13:23:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![soulseekah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/soulseekah/32/316792_2.png) [@soulseekah](https://meta.discourse.org/u/soulseekah)\
**Post date:** [July 20, 2023, 1:23pm UTC](https://meta.discourse.org/t/nomethoderror-on-development-install/272294/1 "2023-07-20T13:23:12Z")

</div>

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

```plaintext
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'

```

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

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [July 20, 2023, 1:40pm UTC](https://meta.discourse.org/t/nomethoderror-on-development-install/272294/2 "2023-07-20T13:40:05Z")

</div>

It’s this a [standard install](https://meta.discourse.org/t/142537?silent=true)? Do all requests do this? Any plugins?

---

<div class="post-metadata">

**Author:** ![soulseekah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/soulseekah/32/316792_2.png) [@soulseekah](https://meta.discourse.org/u/soulseekah)\
**Post date:** [July 20, 2023, 1:52pm UTC](https://meta.discourse.org/t/nomethoderror-on-development-install/272294/3 "2023-07-20T13:52:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![soulseekah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/soulseekah/32/316792_2.png) [@soulseekah](https://meta.discourse.org/u/soulseekah)\
**Post date:** [July 21, 2023, 11:06am UTC](https://meta.discourse.org/t/nomethoderror-on-development-install/272294/4 "2023-07-21T11:06:08Z")

</div>

I analyzed the [standard install](https://meta.discourse.org/t/142537?silent=true) 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.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [August 20, 2023, 11:06am UTC](https://meta.discourse.org/t/nomethoderror-on-development-install/272294/5 "2023-08-20T11:06:35Z")

</div>

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