这是我正在使用的命令:
appcfg.py download_app -A --application= appid
输出:
/usr/local/bin/appcfg.py:42: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
os.path.join(DIR_PATH, 'lib', 'django_0_96'),
/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_login.py:33: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Host: appengine.google.com
Fetching file list...
Email: [email]
Password for [email]:
Error 400: --- begin server output ---
Client Error (400)
The request is invalid for an unspecified reason.
--- end server output ---
我的电子邮件/ pw是正确的。任何人都可以帮我翻译这个错误吗?
答案 0 :(得分:6)
查看文档,该命令的格式为:
appcfg.py download_app -A <application-id> -V <application-version> <output-dir>
看起来文档中存在错误,因为当我尝试时,<output-dir>
参数必需。
因此,您的调用应该像下载到当前目录(.
)
appcfg.py download_app -A appid .
答案 1 :(得分:1)
我自己有这个问题。参数的顺序有所不同。 appid和版本(可选)需要在“download_app”之前出现。
以下对我有用:
appcfg.py -A appid download_app ../../path/to/directory/
答案 2 :(得分:0)
以下命令对我有用:
appcfg.py download_app -A s~xxx -V 1.374941992621083247 .
我的网站为http://xxx.appspot.com
,但我使用-A xxx
代替-A s~xxx
。
s~xxx
和version_id 1.374941992621083247
可以从App Engine控制台的网址中获取,如下所示:
https://appengine.google.com/logs?&app_id=s~xxx&version_id=1.374941992621083247