This exception happened to a production environment and it has happened
again. It happens every now. I retry the operation but sometimes the issue
persists.
Here is the error detail and the list of accounts where it happened is sent
in a follow-up private email.
com.google.api.ads.common.lib.exception.OAuthException: Credential could
not be refreshed.
at
com.google.api.ads.common.lib.auth.OfflineCredentials.generateCredential(OfflineCredentials.java:145)
at
com.bonial.megan.google.adwords.helper.AdwordsBatchJobServiceHelper.connectToGoogleAdwords(AdwordsBatchJobServiceHelper.groovy:91)
at
com.bonial.megan.google.adwords.helper.AdwordsBatchJobServiceHelper.initializeAdWordsSession(AdwordsBatchJobServiceHelper.groovy:62)
at
com.bonial.megan.google.adwords.AdwordsBatchJobService.createAndUploadBatchJobOperations(AdwordsBatchJobService.groovy:32)
at
com.bonial.megan.services.BatchProcessingService.createAndUploadBatchJobOperations(BatchProcessingService.groovy:51)
at
com.bonial.megan.execution.actors.stateChange.mutate.StateChangeMutateActor$_onReceiveBody_closure1.doCall(StateChangeMutateActor.groovy:42)
at
com.bonial.megan.execution.actors.stateChange.mutate.StateChangeMutateActor.onReceiveBody(StateChangeMutateActor.groovy:41)
at
com.bonial.megan.execution.actors.AbstractActor.onReceive(AbstractActor.groovy:42)
at
akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:167)
at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
at akka.actor.UntypedActor.aroundReceive(UntypedActor.scala:97)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
at akka.actor.ActorCell.invoke_aroundBody0(ActorCell.scala:487)
at akka.actor.ActorCell$AjcClosure1.run(ActorCell.scala:1)
at
org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
at
akka.kamon.instrumentation.ActorCellInstrumentation$$anonfun$aroundBehaviourInvoke$1.apply(ActorCellInstrumentation.scala:62)
at kamon.trace.Tracer$.withContext(TracerModule.scala:57)
at
akka.kamon.instrumentation.ActorCellInstrumentation.aroundBehaviourInvoke(ActorCellInstrumentation.scala:61)
at akka.actor.ActorCell.invoke(ActorCell.scala:483)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:254)
at akka.dispatch.Mailbox.run(Mailbox.scala:221)
at
scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at
scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at
scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at
scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: java.net.ConnectException: Connection refused
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at
com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:77)
at
com.google.api.client.http.HttpRequest.execute(HttpRequest.java:972)
at
com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:283)
at
com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
at
com.google.api.client.auth.oauth2.Credential.executeRefreshToken(Credential.java:570)
at
com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:362)
at
com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
at
com.google.api.ads.common.lib.auth.OAuth2Helper.callRefreshToken(OAuth2Helper.java:68)
at
com.google.api.ads.common.lib.auth.OfflineCredentials.generateCredential(OfflineCredentials.java:140)
... 25 more
Please provide a solution ASAP.
Retrying the operation is a work-around* BUT NOT A SOLUTION UNLESS YOU FIX
THIS.*
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/48bd7156-79ab-41a3-b2c4-ba8859c2618d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.