AppEngine远程API保持返回302

时间:2013-11-01 17:39:37

标签: java google-app-engine google-cloud-datastore

我需要从appengine应用程序下载数据存储区。应用程序本身是用JAVA编写的,我已经根据this instruction激活了远程API。然后我运行appcfg.py并询问我登录详情,我得到以下结果:

06:18 PM Downloading data records.
[INFO    ] Logging to bulkloader-log-20131101.181851
[INFO    ] Throttling transfers:
[INFO    ] Bandwidth: 250000 bytes/second
[INFO    ] HTTP connections: 8/second
[INFO    ] Entities inserted/fetched/modified: 20/second
[INFO    ] Batch Size: 10
Please enter login credentials for [_app_address_]    
Email: [_My_Google_Mail_]
Password for [_My_Google_Mail_]: 
Error 302: --- begin server output ---

--- end server output ---

显然我隐藏了应用程序和我的邮件,但它们是正确的(我在使用appcfg.sh部署新版本时使用相同的凭据)。

如果它有助于应用配置: 身份验证类型:(实验)联合登录 数据存储复制选项:高复制

我该怎么办?我真的需要获得生产数据的本地副本......

2 个答案:

答案 0 :(得分:0)

咦。问题发生在Note: Bulk upload and download is not supported for apps that use Federated (OpenID) authentication

我做了一个解决方法 - 也许有人发现它很有用。为了下载数据,我创建了第二个具有谷歌帐户身份验证类型的应用程序,并从this instruction上传了简单的python应用程序。通过这种方式,我可以将实体从我的源应用移动到目标,然后使用简单的appcfg.py调用下载...

答案 1 :(得分:0)

The parameter `--url` needs to start with `https`
e.g.
`appcfg.py upload_data --config_file=bulkloader.yaml --url=https://<APP_ID>.appspot.com/remote_api --kind=<ENTITY> --filename=<FILE_NAME>.csv`
相关问题