Welcome Guest | Login

'Status: 500 Internal Server Error Content-Type: text/html' Text appearing on 500 error pages

I created a custom 500.html file, and noticed that the following text appears at the top of the output -
Status: 500 Internal Server Error Content-Type: text/html

I switched back to the default 500.html and noticed that it's happening with that as well.

It's as if the status headers are just being output by the browser. Does anyone know why this is happening and how to get rid of it?

2007-09-11 04:59 PM

Hello,

I checked your main domain name http://rankosaur.us/and it is loading fine. Can you provide us the URL that is related with this issue.

2007-09-11 05:22 PM

Regards,
Rahul
Hi, please go to http://www.rankosaur.us/ again and look at it. Note that it is not the fact that there is an error that I am wondering about. (I purposely created this error by inserting some gibberish in to application.rb.) It is that the text 'Status: 500 Internal Server Error Content-Type: text/html' is being inserted before the 500.html output. I don't think this is a HostingRails issue as it happens on my development machine as well. It may even be a Rails bug. I was just wondering if anyone had experienced it before.

Another curious fact is that if I were to just insert gibberish in to a specific action, and then go that that page, it renders the 500.html without inserting the extra lines.

2007-09-11 06:33 PM

Alright I'm pretty convinced it's just a Rails bug. I've put everything back to its normal working state.

2007-09-11 07:42 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!