After creating and deploying your rails application, you might find this error on your logs.

Looking at the site produced on the browser you will be redirected to a "500 Internal Server Error" page.

500 Internal Server Error - Malformed Header from Script

An error 500 states that something went wrong within your server. It could be a misused process or parameters were not met as specified or expected.

So what's wrong?

Basically, this error was produced by left out debugging codes. You may not notice it at the development phase but basically this is cause by output codes (such as 'puts') that you left behind.

How to Solve

To resolve this, you can just find all puts command on your code and remove it. Make sure to reset your server before reloading again.

No comments :

Post a Comment