[英]Migrating to OAuth for uploading war file to Google App Engine using ant
Google App Engine
deprecated client login and moved to OAuth
. Google App Engine
不赞成使用客户端登录,并移至OAuth
。 This effects uploading the app(may be war file) to Google App Engine
as it requires authentication. 由于需要进行身份验证,因此可以将应用程序(可能是战争文件)上传到
Google App Engine
。 If ant update is used via AppCfg it throws an error - 如果通过AppCfg使用ant update,则会引发错误-
"java.lang.RuntimeException: Bad authentication response: 404 Not Found Unable to update app: Bad authentication response: 404 Not Found"
“ java.lang.RuntimeException:错误的身份验证响应:找不到404无法更新应用程序:错误的身份验证响应:找不到404”
There are few solutions available for maven
but not for ant
. 几乎没有适用于
maven
解决方案,但不适用于ant
。
This issue is fixed by moving to latest Google App Engine version(1.9.34). 通过移至最新的Google App Engine版本(1.9.34),可以解决此问题。 Latest appcfg update command asks for the OAuth by default.
默认情况下,最新的appcfg更新命令会要求OAuth。 If you are running this command in a remote server(headless browser environment) make sure you run - 'unset DISPLAY'.
如果在远程服务器(无头浏览器环境)中运行此命令,请确保运行-'unset DISPLAY'。 Otherwise authorisation fails trying to open a browser.
否则,授权将无法尝试打开浏览器。
Ref links: 参考链接:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.