我在从 Google App Engine Launcher 启动我的第一个应用时遇到了一些问题。我已经在App Engine网站注册了一个帐户。点击部署按钮后,我将部署应用程序发送到Google 弹出窗口,然后输入我在注册时提供的信息。然后我得到了这个错误:
Starting update of app: isabelleengineapp, version: 1
12:49 PM Getting current resource limits.
Password for swissian@gmail.com: Use an application-specific password instead of your regular account password.
See http://www.google.com/support/accounts/bin/answer.py?answer=185833
However, now the recommended way to log in is using OAuth2. See
https://developers.google.com/appengine/docs/python/tools/uploadinganapp#oauth
2013-01-29 12:49:22,607 ERROR appcfg.py:2203 An error occurred processing file '': HTTP Error 401: Unauthorized. Aborting.
Error 401: --- begin server output ---
Must authenticate first.
--- end server output ---
2013-01-29 12:49:22 (Process exited with code 1)
现在,我认为这可能是因为我为 Google 帐户设置了两步验证,但我不知道除了尝试使用应用程序之外还要做什么获取部署弹出窗口时的特定密码,但这不起作用。有任何想法吗?!
答案 0 :(得分:3)
您可以尝试将--oauth2
选项传递给appcfg.py
。
这是另一种验证方式,可以避免必须处理密码。