Rails 5.2 exceptions not showing
Asked Answered
L

3

8

I upgraded from 5.1 to 5.2 and now my exceptions are not showing, and I'm seeing the 500 error page, as if I had config.consider_all_requests_local set to false... it's set to true in my development.rb however.

Also, as a sidenote, when the exception happens theres literally 10 seconds of log output in the terminal before rails responds. It's so much log output that I can't even scroll to see if the error is being triggered by something else.

Lucrative answered 11/4, 2018 at 18:38 Comment(5)
without a stack trace I'm not sure how to help?Cowry
When I scroll to the top of the 10 seconds of output, it's the normal exception of whatever I break to test it (for instance, forcing an image filename to be wrong). The problem isnt the exception itself, its that there is no exception showing... I see the rails 500 error page that normally shows in production (public/500.html)Lucrative
dit you check for application.rb for exception config?Lager
I manually copied and replaced every file from a fresh rails 5.2 app, so nothing is different from the default from what i can seeLucrative
I submitted an issue for this in rails repo github.com/rails/rails/issues/32578Stefanistefania
L
16

To all the people that find this... here is the problem. I had to remove the web-console gem from the gemfile (leftover from previous Rails versions), and it works now.

gem 'web-console', '>= 3.3.0'
Lucrative answered 11/4, 2018 at 22:19 Comment(1)
Thank you so much for posting this! I had this same issue and was pulling my hair out for the last 2 hours trying to figure out what i was doing wrong!Predictory
A
2

Edit your Gemfile with gem 'web-console' and remove version. Run `bundle install'

Artillery answered 30/4, 2018 at 15:35 Comment(0)
R
0

For me this was an issue with the remotipart and web-console gems. I was able to downgrade remotipart and all is well.

gem 'remotipart', '1.3.0'

https://github.com/rails/rails/issues/32578

Ransdell answered 16/4, 2018 at 18:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.