Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error 401 Unauthorized (Invalid OAuth Token) during AppEngine Deployment with Eclipse Plugin

I'm trying to deploy a fairly large app over an unfortunately fairly slow internet connection from within Eclipse. After something like 15-30 minutes during the file-upload, the deploy process aborts with a 401 Unauthorized (Invalid OAuth Token) error. Is this a timeout on some login-cookie, or am I doing something else wrong?

Workaround: Luckily AppEngine is smart enough to not re-upload identical files, so all I need to do is an "appcfg rollback" and try to deploy again. Eventually all files are uploaded and everything is fine. Just really annoying...

Thanks,

Markus

like image 311
Markus A. Avatar asked Nov 13 '22 03:11

Markus A.


1 Answers

This happened to me as well. Multiple failures uploading 3000+ files after I localized & code split my GWT application.

My solution is to define an External Tool to launch appcfg.cmd and upload that way.

Run menu | External Tools | External Tools Configurations...
Location: ...\appengine-java-sdk-1.7.0\bin\appcfg.cmd
Working Directory: ${project_loc}
Arguments: update ./war
like image 78
Stevko Avatar answered Dec 22 '22 04:12

Stevko