Hello Swanand, Based on that stacktrace, it sounds like a lower-level problem that the Ruby httpclient library has in reading the response data. I don't know how much can be done from the AdWords API perspective to troubleshoot this. I did notice that you're using httpclient 2.1.3.1 and that there's a 2.1.4 version that's available (http://raa.ruby- lang.org/project/httpclient/). Can you try upgrading your httpclient and see if the problem persists?
Cheers, -Jeff Posnick, AdWords API Team On Jun 3, 11:44 am, Swanand Pagnis <swanand.pag...@gmail.com> wrote: > Hello Team, > > I use adwords4r ruby interface to fetch a daily keyword report from Google. > In the last couple of days I am getting a strange (to me) error in > httpclient's get_content method. I am not sure whether this is because of > adwords4r or AdWords API problem. > > Here is the stack trace: > Executing RAILS_ENV=staging /usr/bin/rake sem:google date=2009-06-02 : > rake aborted! > You have a nil object when you didn't expect it! > The error occurred while evaluating nil.hex > /usr/lib/ruby/gems/1.8/gems/httpclient-2.1.3.1/lib/httpclient/session.rb:82 > 0:in > `read_body_chunked' > /usr/lib/ruby/gems/1.8/gems/httpclient-2.1.3.1/lib/httpclient/session.rb:58 > 9:in > `get_body' > /usr/lib/ruby/gems/1.8/gems/httpclient-2.1.3.1/lib/httpclient.rb:947:in > `do_get_block' > /usr/lib/ruby/gems/1.8/gems/httpclient-2.1.3.1/lib/httpclient.rb:758:in > `do_request' > /usr/lib/ruby/gems/1.8/gems/httpclient-2.1.3.1/lib/httpclient.rb:837:in > `protect_keep_alive_disconnected' > /usr/lib/ruby/gems/1.8/gems/httpclient-2.1.3.1/lib/httpclient.rb:757:in > `do_request' > /usr/lib/ruby/gems/1.8/gems/httpclient-2.1.3.1/lib/httpclient.rb:822:in > `follow_redirect' > /usr/lib/ruby/gems/1.8/gems/httpclient-2.1.3.1/lib/httpclient.rb:514:in > `get_content' > ./lib/imports/google/google_daily_keyword_report.rb:116:in `fetch' > /srv/www/semgmt/releases/20090602172040/lib/tasks/sem.rake:78 > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `call' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in `execute' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in > `invoke_with_call_chain' > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in > `invoke_with_call_chain' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in > `invoke_prerequisites' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in `each' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in > `invoke_prerequisites' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in > `invoke_with_call_chain' > /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in > `invoke_with_call_chain' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in `invoke_task' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in > `standard_exception_handling' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in > `standard_exception_handling' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run' > /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31 > /usr/bin/rake:19:in `load' > /usr/bin/rake:19 > (in /srv/www/semgmt/releases/20090602172040) > ** Invoke sem:google (first_time) > ** Invoke sem:google_fetch (first_time) > ** Invoke sem:init (first_time) > ** Invoke environment (first_time) > ** Execute environment > ** Execute sem:init > ** Execute sem:google_fetch > > Any help is much appreciated. > > Thanks, > Swanand --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~----------~----~----~----~------~----~------~--~---