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?
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.
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. .
The 500 response code means that the request for a web page was unsuccessful.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With