Hi,

We are seeing this same error for the past few days using the Ruby client. 
We make two scheduled attempts to download data at 3:30 AM and 5:30 AM, 
they both fail with the same error. Manual re-try at 7AM usually succeeds.

ERROR 2014-01-21 03:30:33 21896 [Vulcan::Google]: 
msg:#<AdsCommon::Errors::AuthError: OAuth2 token refresh failed>
/home/offers/tracking/shared/bundle/jruby/1.9/gems/google-ads-common-0.9.3/lib/ads_common/auth/oauth2_handler.rb:94:in
 
`refresh_token!'
/home/offers/tracking/shared/bundle/jruby/1.9/gems/google-ads-common-0.9.3/lib/ads_common/auth/oauth2_handler.rb:83:in
 
`get_token'
/home/offers/tracking/shared/bundle/jruby/1.9/gems/google-ads-common-0.9.3/lib/ads_common/api.rb:113:in
 
`authorize'

ERROR 2014-01-21 05:30:32 3817 [Vulcan::Google]: 
msg:#<AdsCommon::Errors::AuthError: OAuth2 token refresh failed>
/home/offers/tracking/shared/bundle/jruby/1.9/gems/google-ads-common-0.9.3/lib/ads_common/auth/oauth2_handler.rb:94:in
 
`refresh_token!'
/home/offers/tracking/shared/bundle/jruby/1.9/gems/google-ads-common-0.9.3/lib/ads_common/auth/oauth2_handler.rb:83:in
 
`get_token'
/home/offers/tracking/shared/bundle/jruby/1.9/gems/google-ads-common-0.9.3/lib/ads_common/api.rb:113:in
 
`authorize'

Any idea what is causing this issue?

Thanks, Rohit

On Monday, January 6, 2014 6:09:32 AM UTC-6, Akil Burgess wrote:
>
> Hi All,
>
> We've noticed a weird authentication error that was occurring on one of 
> our application servers over the weekend. All of our 
> *MutateJobService.mutate* API calls were failing with the error below 
> across multiple accounts. The weird thing is all other API calls were 
> unaffected and the MutateJobService.mutate API calls succeeded across our 
> other application servers (which are all using the same OAuth2 
> credentials). After restarting the failing application instance the errors 
> disappeared.
>
> Is there a reason why the refresh would only fail for one API call and not 
> for others? Similarly, why would the refresh only fail on one application 
> instance and not others?
>
> Thanks!
> Akil Burgess
>
>
> An unhandled exception occurred.
> [Google.Api.Ads.Common.Lib.AdsOAuthException]: Failed to refresh access 
> token.
> &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
> http://www.w3.org/TR/html4/loose.dtd"&gt;&lt;html&gt;&lt;head&gt;&lt;title&gt;Google
>  
> Accounts&lt;/title&gt;&lt;meta http-equiv="content-type" 
> content="text/html; charset=utf-8"&gt;&lt;meta http-equiv="X-UA-Compatible" 
> content="IE=edge" /&gt;&lt;meta name="viewport" 
> content="width=device-width, initial-scale=1, minimum-scale=1, 
> maximum-scale=1, user-scalable=0" /&gt;&lt;link rel='stylesheet' 
> type='text/css' href='
> https://ssl.gstatic.com/accounts/o/1893590695-error_page_css_ltr.css'&gt;
> &lt;script type="text/javascript" src="
> https://ssl.gstatic.com/accounts/o/635117462-common_lib.js
> "&gt;&lt;/script&gt;
> &lt;style&gt;@media screen and (max-width:500px) {#robot {background: 
> none; min-height: 0; min-width: 0; padding: 0;}#stack_trace {display: 
> none;}}
> #oauth2_request_info_header {background-image: url("
> https://ssl.gstatic.com/accounts/o/blank.gif";);}&lt;/style&gt;&lt;/head&gt;&lt;body
>  
> &gt;&lt;div id="robot"&gt;&lt;/div&gt;&lt;a href="//www.google.com/" 
> id="googlelogo"&gt;&lt;img src="//www.google.com/images/logo_sm.gif" 
> alt="Google"&gt;&lt;/a&gt;&lt;p class="large"&gt;&lt;b&gt;403.&lt;/b&gt; 
> &lt;ins&gt;That's an error.&lt;/ins&gt;&lt;/p&gt;&lt;p class="large"&gt;You 
> are not authorized to perform this request.  &lt;ins&gt;That's all we 
> know.&lt;/ins&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;
>
> Stack Trace: 
>    at 
> Google.Api.Ads.Common.Lib.OAuth2ProviderForApplications.RefreshAccessTokenInOfflineMode()
>    at Google.Api.Ads.Common.Lib.OAuth2ProviderBase.GetAuthHeader()
>    at Google.Api.Ads.AdWords.Lib.AdWordsSoapClient.InitForCall(String 
> methodName, Object[] parameters)
>    at Google.Api.Ads.Common.Lib.AdsSoapClient.MakeApiCall(String 
> methodName, Object[] parameters)
>    at Google.Api.Ads.AdWords.v201306.MutateJobService.mutate(Operation[] 
> operations, BulkMutateJobPolicy policy)
>    ...
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
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 adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to