Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

I was doing some updates to my Guru JSON-RPC Tester recently and when it came to deploying my changes to AppEngine, I was presented with this very uninformative error message - "An error occured while deploying to AppEngine. See the error log for more details". That didn't give me any clue as to what the actual problem was, not to mention the obvious spelling mistake in the error message.

Luckily the Error Log did have more details, but first you had to display it. To see the Error Log, go to the Window menu, then Show View, then Error Log.

From there I could see that the actual error was "Could not obtain an OAuth2 access token." That was finally getting me somewhere.

Basically what that is saying is there is something wrong with the authorisation of your account during deployment. In my case, I've not done a deploy for several months so it's likely that my access token simply expired. Resolving that is simple, as Roy would have put it "Have you tried turning it off and on again?" Yep, all you need to do is log out of your Google account in Eclipse and then log back in. To log out, click your Google account in the bottom right part of the Eclipse window.

Deployment worked without any issues after signing back in.


Did you like this post or found it useful? Considering supporting this Blog to keep its web servers running, any amount helps! Thanks!
Have comments or feedback on what I wrote? Please share them below!
comments powered by Disqus
Other posts you may like...