Hello Swanand, Since your original post, we have received word from other developers who were experiencing similar dropped connections. Some of them experienced it when they were making SOAP calls, but we did also hear from users who saw the dropped connection during HTTPS GETs of completed reports. There's another thread open about the issue here:
http://groups.google.com/group/adwords-api/browse_thread/thread/45174e92405d8931 Cheers, -Jeff Posnick, AdWords API Team On Jun 12, 3:53 am, Swanand <swanand.pag...@gmail.com> wrote: > I meant adwords4r 15.1.0. > > On Jun 12, 12:49 pm, Swanand <swanand.pag...@gmail.com> wrote: > > > > > Hello, > > > After observing a couple of fetch failures, I realized that for all > > the dates that the report failed, files were 19M+ (Again, the fetches > > did not consistently fail, but frequently). As per a senior developer > > in my organization, the problem appears to be Google sending a close > > before the stream is completely downloaded. > > > Upgrading to adwords4r 15.0.1 did the trick. The new method: > > downloadXmlReport(job_id) takes care of this problem (at least until > > now). Would report back if it occurs again. > > > -Swanand > > > On Jun 4, 12:05 pm, Swanand <swanand.pag...@gmail.com> wrote: > > > > Hello Jeff, > > > > I think I did not mention one important point: The problem is not > > > persistent, only frequent. Sometimes I _am_ able to download the > > > report and sometime I am not, which is why I thought it might be an > > > API problem. > > > Also, I upgraded to 2.1.4 on dev environment. Still the same problem. > > > I will try to debug more and post some more information. > > > > Thanks, > > > Swanand > > > > On Jun 4, 1:22 am, AdWords API Advisor <adwordsapiadvi...@google.com> > > > wrote: > > > > > 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 -~----------~----~----~----~------~----~------~--~---