[Nitro] Nitro Apache2 CGI/FCGI (again)

Kashia Buch kashia at vfemail.net
Thu Dec 29 16:12:36 EST 2005


Hi,

On Thu, 29 Dec 2005 21:51:25 +0100, James Britt <james_b at neurogami.com>  
wrote:
> I *believe* you should be able to run the cgi script form the command
> line, which might give you some more useful error info.  The 'malformed
> header' stuff is the ultimate in useless error messages.  It tends to
> come from the actual error info being sent out to Apache, which  in turn
> complains about the data not being all nice and header-like (while not
> bothering to emit the actual bad header data in its message).

I agree with you.. very useless indeed

$ ruby cgi.rb
D, [2005-12-29T21:57:40.163325 #14122] DEBUG -- : Using memory sessions.
....
(offline mode: enter name=value pairs on standard input)
^D
/sw/var/lib/gems/1.8/gems/nitro-0.26.0/lib/nitro/cgi/request.rb:106:in  
`method': undefined method `downcase' for nil:NilClass (NoMethodError)
         from  
/sw/var/lib/gems/1.8/gems/nitro-0.26.0/lib/nitro/cgi.rb:165:in  
`parse_params'
         from /sw/var/lib/gems/1.8/gems/nitro-0.26.0/lib/nitro/cgi.rb:34:in  
`process'
         from  
/sw/var/lib/gems/1.8/gems/nitro-0.26.0/lib/nitro/adapter/cgi.rb:22:in  
`start'
         from  
/sw/var/lib/gems/1.8/gems/nitro-0.26.0/lib/nitro/server/runner.rb:257:in  
`invoke'
         from  
/sw/var/lib/gems/1.8/gems/nitro-0.26.0/lib/nitro/server.rb:124:in `run'
         from /sw/var/lib/gems/1.8/gems/nitro-0.26.0/lib/nitro.rb:73:in  
`start'
         from ./../run.rb:24
         from cgi.rb:5

in request.rb line 106

@headers['REQUEST_METHOD']
does not seem to be set.

but, now, does that have anything to do with the cgi problem...
guess it does, will investigate a bit

Thank you very much for the help :D


Kash
-- 
Feel the love
http://pinkjuice.com/pics/ruby.png



More information about the Nitro-general mailing list