Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I configure Rails to send emails on 500 error?

Sometimes in production, some piece of code with a specific input might break with a 500 error. How can I configure Rails 3 to automatically send the traceback to an email when there's a 500 error?

like image 739
Thierry Lam Avatar asked Feb 04 '13 00:02

Thierry Lam


People also ask

Why does HTTP 500 error occur?

The HTTP status code 500 is a generic error response. It means that the server encountered an unexpected condition that prevented it from fulfilling the request. This error is usually returned by the server when no other error code is suitable.

How do I fix error 500 in Java?

Problem of authorization. If the web server does not have authorization to view the site files, an HTTP 500 error can be triggered. The solution to this problem is to recursively modify the permissions of the website file. .

What is a HTTP error 500 on Google?

The 500 response code means that the request for a web page was unsuccessful.


1 Answers

Check out ExceptionNotification. That's exactly what it was designed for.

And if you want even better visibility I would suggest you set up an Error Catcher. It's basically the upgraded version of ExceptionNotifier. Airbrake works well but I prefer the open source equivalent Errbit. https://github.com/errbit/errbit

like image 189
mathieugagne Avatar answered Oct 07 '22 00:10

mathieugagne