Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors are not shown in the browser in Rails 5, no info about the filename and lineno in logs #695

Open
januszm opened this issue May 11, 2016 · 6 comments

Comments

@januszm
Copy link

januszm commented May 11, 2016

Rails 5.0.0.rc1

On error I see the standard 'production-like' page:

We're sorry, but something went wrong.

Also, that's all I get in logs:

ActionView::Template::Error (Multiple , attributes specified):

Possibly related to: #472 ?

@CJYate
Copy link

CJYate commented Sep 12, 2016

I've just encountered this. I'm sure it's probably my mistake, but a bit of info about where I went wrong would be helpful!

@mattbrictson
Copy link

I'm also seeing this in Rails 5.1.1. Like @januszm, I get an ActionView::Template::Error with no reference to the slim filename or line number anywhere in the stack trace.

@1v
Copy link

1v commented Nov 10, 2019

Same issue in 5.2.3.

[INFO ] Completed 500 Internal Server Error in 805ms (ActiveRecord: 24.9ms)
[FATAL] ActionView::Template::Error (Object must be a Date, DateTime or Time object. 3661 given.):

No stack trace.

@schmijos
Copy link

schmijos commented Mar 17, 2020

I'm on Rails 6.0.0 using slim 4.0.1. ERB errors are rendered in the web-console, some Slim errors are swallowed up. better_errors works as a replacement.

@romanbsd
Copy link

I'm also experiencing this. In some cases there's no report in the log and not in web-console.
However I have a sentry crash backtrace for one such issue.
In my case it was InvalidPluralizationData exception thrown by i18n library. I don't know where in Rails it gets wrapped into ActionView::Template::Error and why it doesn't show in development. Hope that it helps.

@stonean
Copy link
Contributor

stonean commented May 8, 2020

I'm starting a new rails project now, I'll fix it if I see it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants