0

我在将部署的数据存储下载到本地目录时遇到问题。

文档看起来很简单

https://developers.google.com/appengine/docs/python/tools/uploadingdata#Downloading_and_Uploading_All_Data

我对 GAE 有点陌生……我在这里遗漏了一些明显的东西吗?

我运行以下命令

appcfg.py download_data --url=http://myapp.appspot.com/_ah/remote_api --filename=ds_copy

我什至没有被要求进行身份验证,这是输出:

12:33 PM Downloading data records.
[INFO    ] Logging to bulkloader-log-20130507.123333
[INFO    ] Throttling transfers:
[INFO    ] Bandwidth: 250000 bytes/second
[INFO    ] HTTP connections: 8/second
[INFO    ] Entities inserted/fetched/modified: 20/second
[INFO    ] Batch Size: 10
Error 500: --- begin server output ---

<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>500 Server Error</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Server Error</h1>
<h2>The server encountered an error and could not complete your request.<p>If the problem persists, please <A HREF="http://code.google.com/appengine/community.html">report</A> your problem and mention this error message and the query that caused it.</h2>
<h2></h2>
</body></html>
--- end server output ---

任何帮助表示赞赏!

4

2 回答 2

0

您只需要启用远程 api

builtins:
- remote_api: on

更新您的应用程序,然后运行以下命令:

appcfg.py download_data -A appName --url=http://appName.appspot.com/_ah/remote_api/ --filename=data.csv
appcfg.py --url=http://localhost:8080/_ah/remote_api/ --filename=data.csv upload_data <directory>

这取自https://stackoverflow.com/a/7944641/2954800

于 2013-11-19T11:41:23.287 回答
0

您是否已将 remote_api 配置为在您的 app.yaml 中启用?

https://developers.google.com/appengine/docs/python/tools/remoteapi

于 2013-05-07T23:09:45.807 回答