rails 4: custom error pages for 404, 500 and where is the default 500 error message coming from?

后端 未结 4 1998
悲&欢浪女
悲&欢浪女 2020-11-27 13:35

Currently in production im getting this text:

500 Internal Server Error
If you are the administrator of this website, then please read this web application\'         


        
4条回答
  •  情话喂你
    2020-11-27 14:08

    The Error you are experiencing is being thrown from

    https://github.com/rails/rails/blob/4-0-stable/actionpack/lib/action_dispatch/middleware/show_exceptions.rb#L18-L22

    This means, the code your exceptions are getting rescued by are themselves throwing exceptions. You can check your logs for text:

    Error during failsafe response:

    to identify what the exceptions really are originating from and thus solve your problem.

提交回复
热议问题