Displaying 4 results from an estimated 4 matches for "httpbadresponse".
2007 Jul 27
3
Is mechanize thread safe?
Hello all,
I was just wondering if anybody knew whether mechanize is supposed to
be thread-safe or not? I didn''t really find any information about it
anywhere. I''ve been getting a strange error in protocol.rb when I run
a script that uses mechanize in a multi threaded fashion, but not with
a single thread.
I''m trying to write a spider that does multiple gets in
2007 Jun 10
0
pb when posting to an action "render_text body, :status => 400"
...07-June/000700.html
In short, the problem is :
the server has to do a "render_text body, :status => 400" to respond to a
post from a consumer. (this is from the openid server example)
This is working fine with webrick, but not in mongrel 1.0.1 on osx where the
consumer get :
Net::HTTPBadResponse: wrong status line: "HTTP/1.1 0 "
If someone wants to try, just make a rails app :
rails test
script/generate controller test index
and in the test_controller define the action ''index'' like that :
class TestController < ApplicationController
def index
render_...
2010 Jun 17
6
Foreman / external_node.rb
...de, which I already took off the internal
node definitions, I get the following error:
/etc/puppet/external_node.rb hostname
/usr/lib/ruby/1.8/net/http.rb:2022:in `read_status_line'': wrong status
line: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN
\">" (Net::HTTPBadResponse)
from /usr/lib/ruby/1.8/net/http.rb:2009:in `read_new''
from /usr/lib/ruby/1.8/net/http.rb:1050:in `request''
from /etc/puppet/external_node.rb:14
from /usr/lib/ruby/1.8/net/http.rb:543:in `start''
from /usr/lib/ruby/1.8/net/http.rb:44...
2010 Jul 22
8
Foreman / External Nodes -- Node Not found
Hello All,
So I finally got around to start to cut over node definitions
from standard flat files to external nodes (foreman), and getting
error message: "Error 400 on SERVER: Could not find node ''nodename'';
cannot compile" - So basically it can''t pick up the node from the
external node config.
When I test the fetching of the yaml file it seems to work