[Ruby-aws] AWS / ItemSearch failing on MP3Downloads

Harold, John-Paul john-paul.harold at emimusic.com
Wed Mar 18 15:48:16 CET 2009


 

> -----Original Message-----
> From: ruby-aws-bounces at caliban.org 
> [mailto:ruby-aws-bounces at caliban.org] On Behalf Of Ian Macdonald
> Sent: 18 March 2009 14:23
> To: ruby-aws at caliban.org
> Subject: Re: [Ruby-aws] AWS / ItemSearch failing on MP3Downloads
> 
> On Wed 18 Mar 2009 at 14:14:25 -0000, Harold, John-Paul wrote:
> 
> > the steps to reproduce are much like the rdoc examples, and 
> also here,
> > http://leondu.com/?p=8 with a few exceptions, detailed below.
> > 
> > when performing a search, where the index is MP3Downloads, and say, 
> > the title = "Grinderman", I get a rather nasty error, like this,
> > 
> > irb(main):053:0> response = request.search( is, rg, :ALL_PAGES )
> > Errno::ECONNABORTED: An established connection was aborted by the 
> > software in your host machine.
> >         from c:/ruby/lib/ruby/1.8/net/protocol.rb:135:in `sysread'
> >         from c:/ruby/lib/ruby/1.8/net/protocol.rb:135:in `rbuf_fill'
> >         from c:/ruby/lib/ruby/1.8/timeout.rb:62:in `timeout'
> >         from c:/ruby/lib/ruby/1.8/timeout.rb:93:in `timeout'
> >         from c:/ruby/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill'
> >         from c:/ruby/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
> >         from c:/ruby/lib/ruby/1.8/net/protocol.rb:126:in `readline'
> >         from c:/ruby/lib/ruby/1.8/net/http.rb:2020:in 
> `read_status_line'
> >         from c:/ruby/lib/ruby/1.8/net/http.rb:2009:in `read_new'
> >         from c:/ruby/lib/ruby/1.8/net/http.rb:1050:in `request'
> >         from c:/ruby/lib/ruby/1.8/net/http.rb:772:in `get'
> >         from
> > c:/ruby/lib/ruby/gems/1.8/gems/ruby-aaws-0.5.0/lib/amazon/aws.rb:12
> > 1:in `get_page'
> >         from
> > c:/ruby/lib/ruby/gems/1.8/gems/ruby-aaws-0.5.0/lib/amazon/aws/searc
> > h.rb:219:in `search'
> >         from (irb):53
> >         from :0
> > irb(main):054:0>
> > 
> > Why is this? I seem to get this error on any, existing MP3Download. 
> 
> I don't know why you're getting this error. Is this a 
> long-running process? It looks as if the connection to the 
> AWS server is timing out, but then I'd expect an 
> Errno::ECONNRESET error.

I only get this error when using a SearchIndex of 'MP3Downloads', I've
been doing searches for Music, Books etc and it's working a charm

> 
> Which version of Ruby is this? What does 'ruby -v' say?

ruby 1.8.7 (2008-05-31 patchlevel 0) [i386-mswin32]

> 
> Here's a possible fix. Modify line 127 of 
> c:/ruby/lib/ruby/gems/1.8/gems/ruby-aaws-0.5.0/lib/amazon/aws.
> rb to read
> this:
>  
>   rescue Errno::ECONNRESET, Errno::ECONNABORTED
> 
> Does the problem go away?

applying this where you suggest, I can now query where SearchIndex =>
'MP3Downloads'

> 
> The problem may relate to the fact you're using Windows. If 
> this fixes it, I'll incorporate it in the code.

it appears to be working so far. Thank you for your help.

jp
> 
> Ian
> -- 
> Ian Macdonald               | A little inaccuracy sometimes 
> saves tons of
> ian at caliban.org             | explanation.   -- H.H. Munro, "Saki" 
> http://www.caliban.org/     | 
>                             | 
>                             |
> _______________________________________________
> ruby-aws mailing list
> ruby-aws at caliban.org
> http://www.caliban.org/mailman/listinfo/ruby-aws
> 

- --------------------------------------------------------------------




Music from EMI 

This e-mail including any attachments is confidential and may be legally privileged. If you have received it in error please advise the sender immediately by return email and then delete it from your system. The unauthorised use, distribution, copying or alteration of this email is strictly forbidden. If you need assistance please contact us on +44 20 7795 7000. 

This email is from a unit or subsidiary of EMI Group Limited. 

Registered Office: 27 Wrights Lane, London W8 5SW 

Registered in England No 229231.


- --------------------------------------------------------------------


More information about the ruby-aws mailing list