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.


A quick disclaimer...

Although I put in a great effort into researching all the topics I cover, mistakes can happen. Use of any information from my blog posts should be at own risk and I do not hold any liability towards any information misuse or damages caused by following any of my posts.

All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle). Use of any information contained in this blog post/article is subject to this disclaimer.
Hi! You can search my blog here ⤵
NOTE: (2022) This Blog is no longer maintained and I will not be answering any emails or comments.

I am now focusing on Atari Gamer.