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.
gae_error1.png


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.
gae_error2.png


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




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.
gae_error4.png


Deployment worked without any issues after signing back in.
gae_error5.png


-i

Skip down to comments...
Hope you found this post useful...

...so please read on! I love writing articles that provide beneficial information, tips and examples to my readers. All information on my blog is provided free of charge and I encourage you to share it as you wish. There is a small favour I ask in return however - engage in comments below, provide feedback, and if you see mistakes let me know.

If you want to show additional support and help me pay for web hosting and domain name registration, donations, no matter how small, are always welcome!

Use of any information contained in this blog post/article is subject to this disclaimer.
 
comments powered by Disqus
Other posts you may like...