# FastCGI: incomplete headers (35 bytes) received

**URL:** <https://www.ruby-forum.com/t/fastcgi-incomplete-headers-35-bytes-received/47798>\
**Category:** Rails\
**Created:** [November 14, 2005, 1:26am UTC](https://www.ruby-forum.com/t/fastcgi-incomplete-headers-35-bytes-received/47798 "2005-11-14T01:26:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bogdan.ionescu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9d8465/32.png) [@bogdan.ionescu](https://www.ruby-forum.com/u/bogdan.ionescu)\
**Post date:** [November 14, 2005, 1:26am UTC](https://www.ruby-forum.com/t/fastcgi-incomplete-headers-35-bytes-received/47798/1 "2005-11-14T01:26:40Z")

</div>

I have Apache 1.3 and FCGI on a linux machine  
Until recently everything worked just fine but tonight the project hit  
me  
with a weird behaviour.  
Basically I was getting a Rails application error, and there was nothing  
in  
the logs. I’ve switched from production to develomnent mode, and still  
nothing.  
It is an AJAX call that failed miserably. I have tried pretty much  
everything. I’ve removed the called action and placed a dummy one, i’ve  
cleared /tmp of sessions, added debug messages, restarted apache several  
times. The rails application error persisted.  
All other AJAX calls doing similar stuff in other parts of the  
application  
work just fine.  
In the end I’ve decided to modify the AJAX call and specified GET  
instead of  
POST, and it worked.  
This is, however, weird stuff.  
The only message when using the POST method, was in apache-error.log  
file,  
and obviously it does not help me.  
Does anyone have a clue? This code used to work normally, and it still  
does  
on my personal computer.  
I see that on the server my application is hosted, they have installed  
recently rails 0.14.3, but I am not sure whether this would affect me.  
on gem list it shows: rails (0.14.3, 0.13.1, 0.12.1) and my application  
was  
created on 0.13

Any help is appreciated, even though my problem is temporarely solved by  
using GET.  
Bogdan

---

<div class="post-metadata">

**Author:** ![bogdan.ionescu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9d8465/32.png) [@bogdan.ionescu](https://www.ruby-forum.com/u/bogdan.ionescu)\
**Post date:** [November 14, 2005, 12:04pm UTC](https://www.ruby-forum.com/t/fastcgi-incomplete-headers-35-bytes-received/47798/2 "2005-11-14T12:04:42Z")

</div>

If that’s an option for you, try switching to lighttpd. It’s often  
less of a headache.

I haven’t seen a single Rails application error with my setup (except  
the 500 ones that arise from bugs in my own code).

Rob

---

<div class="post-metadata">

**Author:** ![bogdan.ionescu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9d8465/32.png) [@bogdan.ionescu](https://www.ruby-forum.com/u/bogdan.ionescu)\
**Post date:** [November 14, 2005, 12:52pm UTC](https://www.ruby-forum.com/t/fastcgi-incomplete-headers-35-bytes-received/47798/3 "2005-11-14T12:52:45Z")

</div>

Well,  
It appears that it might be related to upgrading rails. Various parts of  
the  
project are now acting slightly strange so I have to test everything.  
I’ve noticed that tinyint(1) is now true/false as opposed to 1/0 as it  
was  
before. While this is a nice thing, it’s not so nice that I have to now  
look  
in the code to replace it.  
I guess this is one of the ‘advantages’ of having an account on a shared  
server.

bogdan

---

<div class="post-metadata">

**Author:** ![bogdan.ionescu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9d8465/32.png) [@bogdan.ionescu](https://www.ruby-forum.com/u/bogdan.ionescu)\
**Post date:** [November 14, 2005, 3:47pm UTC](https://www.ruby-forum.com/t/fastcgi-incomplete-headers-35-bytes-received/47798/4 "2005-11-14T15:47:03Z")

</div>

Bogdan I. wrote:

> It appears that it might be related to upgrading rails. Various parts of  
> the project are now acting slightly strange so I have to test everything.  
> I’ve noticed that tinyint(1) is now true/false as opposed to 1/0 as it  
> was before. While this is a nice thing, it’s not so nice that I have to  
> now look in the code to replace it.  
> I guess this is one of the ‘advantages’ of having an account on a shared server

Or one of the disadvantages of missing an automated testsuite. I’ve  
upgraded three projects and all went fine, thanks to well written  
testsuite.

---

<div class="post-metadata">

**Author:** ![bogdan.ionescu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9d8465/32.png) [@bogdan.ionescu](https://www.ruby-forum.com/u/bogdan.ionescu)\
**Post date:** [November 14, 2005, 6:23pm UTC](https://www.ruby-forum.com/t/fastcgi-incomplete-headers-35-bytes-received/47798/5 "2005-11-14T18:23:26Z")

</div>

The thing is that it was not me upgrading the project. Rails got  
upgraded  
without me having any idea about that.  
Thanks for your feedback though  
bogdan
