# FCGI Malformed Header?

**URL:** <https://www.ruby-forum.com/t/fcgi-malformed-header/49893>\
**Category:** Rails\
**Created:** [December 9, 2005, 7:26pm UTC](https://www.ruby-forum.com/t/fcgi-malformed-header/49893 "2005-12-09T19:26:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lists](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/cdc98d/32.png) [@lists](https://www.ruby-forum.com/u/lists)\
**Post date:** [December 9, 2005, 7:26pm UTC](https://www.ruby-forum.com/t/fcgi-malformed-header/49893/1 "2005-12-09T19:26:55Z")

</div>

Until yesterday my app was chugging along… Something has happened and  
I am  
now getting FCGI errors but only on certain pages:

[Fri Dec 09 10:20:44 2005] [error] [client xx.xx.xx.xx] FastCGI: comm  
with  
server “/home/www/apps/myapp/public/dispatch.fcgi” aborted: error  
parsing  
headers: malformed header ‘1’

Any ideas what could be causing this or how I could go about debugging  
it?

I am at a loss. Thanks.

---

<div class="post-metadata">

**Author:** ![lists](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/cdc98d/32.png) [@lists](https://www.ruby-forum.com/u/lists)\
**Post date:** [December 11, 2005, 1:09pm UTC](https://www.ruby-forum.com/t/fcgi-malformed-header/49893/2 "2005-12-11T13:09:20Z")

</div>

Am Freitag, den 09.12.2005, 10:25 -0800 schrieb Hunter’s Lists:

> Until yesterday my app was chugging along… Something has happened and I am  
> now getting FCGI errors but only on certain pages:
> 
> [Fri Dec 09 10:20:44 2005] [error] [client xx.xx.xx.xx] FastCGI: comm with  
> server “/home/www/apps/myapp/public/dispatch.fcgi” aborted: error parsing  
> headers: malformed header ‘1’
> 
> Any ideas what could be causing this or how I could go about debugging it?
> 
> I am at a loss. Thanks.

Are you having ‘puts’ statements anywhere in your code? I rember someone  
had similar problems.

---

<div class="post-metadata">

**Author:** ![lists](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/cdc98d/32.png) [@lists](https://www.ruby-forum.com/u/lists)\
**Post date:** [December 11, 2005, 9:33pm UTC](https://www.ruby-forum.com/t/fcgi-malformed-header/49893/3 "2005-12-11T21:33:12Z")

</div>

For the record, I don’t know what caused this.

I replaced dispatch.fcgi and all is well again.

---

<div class="post-metadata">

**Author:** ![lists](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/cdc98d/32.png) [@lists](https://www.ruby-forum.com/u/lists)\
**Post date:** [December 11, 2005, 11:09pm UTC](https://www.ruby-forum.com/t/fcgi-malformed-header/49893/4 "2005-12-11T23:09:26Z")

</div>

I spoke too soon - my problem is back.

Now none of my pages work, every single request comes back with this 500  
error.

I have no ‘puts’ statements - I just checked.

What can I do to start looking for this issue with FastCGI?
