When I deploy my app to Google I immediately get a message that: An error 
occured while deploying to AppEngine. See the error log for more details.


The Eclipse error log shows what I believe is an authentication problem:

!ENTRY com.google.appengine.eclipse.core 4 0 2014-10-22 11:47:20.830
!MESSAGE Error while deploying to AppEngine.
!STACK 0
com.google.api.client.auth.oauth2.TokenResponseException: 400 Bad Request
{
  "error" : "invalid_grant"
}
at 
com.google.api.client.auth.oauth2.TokenResponseException.from(TokenResponseException.java:105)
at 
com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:287)
at 
com.google.api.client.googleapis.auth.oauth2.GoogleRefreshTokenRequest.execute(GoogleRefreshTokenRequest.java:125)
at 
com.google.gdt.eclipse.login.common.GoogleLoginState.fetchOAuth2Token(GoogleLoginState.java:205)
at 
com.google.gdt.eclipse.login.GoogleLogin.fetchOAuth2Token(GoogleLogin.java:201)
at 
com.google.appengine.eclipse.core.deploy.ui.DeployProjectHandler.execute(DeployProjectHandler.java:116)
at 
com.google.appengine.eclipse.core.deploy.ui.DeployProjectAction.run(DeployProjectAction.java:27)
     ...
     ...


I'm pretty sure Eclipse thinks I'm someone else. I have a Google account 
for work and a personal account as well. The first time I clicked deploy 
the oauth window popped up and asked me for permission to use my 
credentials. Without thinking I entered them and submitted. Problem is it 
pulled up my personal account, not my work account. The app is registered 
under my work account, not my personal account. So the deployment failed, 
as it should have. BUT now I'm stuck and can't get it it working again. 
When I click deploy it won't prompt me, it just fails. I'm trying to get 
Eclipse to prompt me for my oauth credentials again. I tried going into my 
personal account on Google and removing access to Google Eclilpse Plugin. 
Instead of prompting me it just gave the error above (it had previously 
been an access denied message of some sort). I tried deleting the 
.appcfg_oauth2_tokens_java 
file but that didn't seem to have an effect. I tried opening the Eclipse 
web browser and logging into Gmail with my work account to update any 
cached values to use my work account, but no luck.

How can I tell Eclipse to start over and let me log in again? I'm totally 
stuck. There must be a file somewhere that it's using to hold on to my auth 
information. Does anyone know how to clear or reset it?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to