Ralitza
Ralitza

Reputation: 741

Rails, production environment exception page shows in development environment

I'm running Rails 4.2.0.beta and am having a weird issue; instead of the usual Rail’s page displaying exceptions in development mode, like so: enter image description here

I get the following: enter image description here This page appears with any exception.

I have double checked that I'm under development mode and that 'consider_all_requests_local' is set to true in config/environments/development.rb.

I noticed I'm receiving the following error when I hit an exception

" ERROR Rack::Lint::LintError: Response body was given for HEAD request, but should be empty
    /Users/Rali/.rbenv/versions/2.2.0-dev/lib/ruby/gems/2.2.0/gems/rack-1.6.0.beta/lib/rack/lint.rb:20:in `assert'"

I assume it's somehow related.. Any ideas?

Upvotes: 0

Views: 515

Answers (2)

John Ellis
John Ellis

Reputation: 1

Removing gem 'web-console' also solved this issue for me in Rails 5.1, for anyone stumbling into this issue 4 years later...

Upvotes: 0

rindek
rindek

Reputation: 126

Sorry for digging out a month-old question but if there is anyone with same issue (like me), though with version 4.2.0.rc1 I fixed it by removing gem 'web-console' from Gemfile which is by default added when generating new application.

Upvotes: 2

Related Questions