From: akanksha Date: 2006-08-09T06:50:06+09:00 Subject: Re: mechanize timeout errors So I did what you said..... agent.read_timeout = 10 begin page = agent.get(url) rescue Timeout::Error puts "Timeout error" rescue puts "Normal error" end but am still getting the following error. Any idea what might be causing it? GET: http://xyz.com request-header: accept => */* request-header: user-agent => WWW-Mechanize/0.5.1 (http://rubyforge.org/projects/mechanize/) header: cache-control : private header: connection : close, close header: expires : Thu, 30 Sep 1999 01:29:07 GMT header: content-type : text/html header: x-powered-by : ASP.NET header: date : Tue, 08 Aug 2006 21:43:28 GMT header: x-server : CF0471 header: server : Microsoft-IIS/6.0 header: page-completion-status : Normal, Normal header: pragma : no-cache status: 200 GET: http://xyz.com request-header: accept => */* request-header: user-agent => WWW-Mechanize/0.5.1 (http://rubyforge.org/projects/mechanize/) request-header: referer => http://xyz.com /usr/local/lib/ruby/1.8/timeout.rb:54:in `rbuf_fill': execution expired (Timeout::Error) from /usr/local/lib/ruby/1.8/timeout.rb:56:in `timeout' from /usr/local/lib/ruby/1.8/timeout.rb:76:in `timeout' from /usr/local/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill' from /usr/local/lib/ruby/1.8/net/protocol.rb:116:in `readuntil' from /usr/local/lib/ruby/1.8/net/protocol.rb:126:in `readline' from /usr/local/lib/ruby/1.8/net/http.rb:1988:in `read_status_line' from /usr/local/lib/ruby/1.8/net/http.rb:1977:in `read_new' from /usr/local/lib/ruby/1.8/net/http.rb:1046:in `request' ... 8 levels...