Pablo,

It would be great if you could collect the failure report requet/response 
logs and send me the log in private.  Also, please take note on frequency 
and/or time of day when it usually occurred.  It'll help me track things 
down.

Cheers,

Ray

On Tuesday, March 18, 2014 6:27:57 PM UTC-4, Pablo Ochoa wrote:
>
> Good morning, we're having an annoying issue when trying to fetch data 
> from AdWords API, our production server reports the following error:
>
> AdwordsApi::Errors::ReportXmlError: HTTP code: 500, error type: 
> 'ReportDownloadError.INTERNAL_SERVER_ERROR', trigger: 'Unexpected Internal 
> Server Error', field path: ''
>
> This is a rails app using google-adwords-api-0.11.0... I started 
> investigating if this is effectively credentials problem. Turns out I 
> wasn't able to reproduce it... I mean running the code used to perform the 
> fetch with the same "failed" data retrieves results normally.
>
> One thing to note is that we use OAUTH authentication and version 201309 
> of the API. Here's the code for the people familiar with ruby
>
>       srv = connection.report_utils(credentials.api_version)
>
>        predicates = predicates.map do |field_name, values|
>           {:field => field_name, :operator => 'IN', :values => 
> Array.wrap(values)}
>         end
>
>         report_definition = {
>           :selector => {
>             :fields     => report_columns,
>             :predicates => [
>               { :field => :CampaignId, :operator => 'EQUALS', :values => 
> [campaign_id] },
>               *predicates
>             ]
>           },
>           :report_name => report_type,
>           :report_type => report_type,
>           :date_range_type => 'ALL_TIME',
>           :download_format => 'CSV'
>         }
>
>        srv.download_report(report_definition)
>
> The error is not triggered for all the requests we do, but at "random" 
> moments.  Any idea why this error might be happening? Is it expected to 
> have some 500 responses from server?
>
> Any help or clue where to start investigating would be really appreciated.
>
> Thanks
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to