App Engine / Python上的appcfg.py中的download_data出错302

时间:2016-07-27 06:07:44

标签: python google-app-engine google-app-engine-python

我试图从我的App Engine应用程序(Python)下载特定种类的所有实体。

appcfg.py download_data 
    --email=[myemail] 
    --url http://[myapp].appspot.com/remote_api 
    --filename [datafile].csv 
    --kind [MyEntity] 
    --config_file /path/to/bulkloader.yaml 
    --noisy 
    --oauth2_refresh_token=token 
    /path/to/myapp/
10:33 PM Application: [myapp]
10:33 PM Downloading data records.
[INFO    ] Logging to bulkloader-log-20160726.223325
[INFO    ] Throttling transfers:
[INFO    ] Bandwidth: 250000 bytes/second
[INFO    ] HTTP connections: 8/second
[INFO    ] Entities inserted/fetched/modified: 20/second
[INFO    ] Batch Size: 10
[INFO    ] Opening database: bulkloader-progress-20160726.223325.sql3
[INFO    ] Opening database: bulkloader-results-20160726.223325.sql3
[DEBUG   ] [WorkerThread-0] WorkerThread: started
[DEBUG   ] [WorkerThread-1] WorkerThread: started
[DEBUG   ] [WorkerThread-2] WorkerThread: started
[DEBUG   ] [WorkerThread-3] WorkerThread: started
[DEBUG   ] [WorkerThread-4] WorkerThread: started
[DEBUG   ] [WorkerThread-5] WorkerThread: started
[DEBUG   ] [WorkerThread-6] WorkerThread: started
[DEBUG   ] [WorkerThread-7] WorkerThread: started
[DEBUG   ] [WorkerThread-8] WorkerThread: started
[DEBUG   ] [WorkerThread-9] WorkerThread: started
[DEBUG   ] Configuring remote_api. url_path = /remote_api, servername = [myapp].appspot.com
2016-07-26 22:33:25,999 INFO client.py:546 Attempting refresh to obtain initial access_token 
2016-07-26 22:33:25,999 INFO client.py:804 Refreshing access_token 
Error 302: --- begin server output ---

--- end server output ---

remote_api在app.yaml中配置:

runtime: python27
api_version: 1
threadsafe: true
builtins:
- remote_api: on

(这很有效,因为我能够使用远程API shell来访问我的应用程序。)

我的bulkloader.yaml文件刚刚生成,因此没有问题。正如你在上面所看到的那样,我使用了--noisy标志,但仍然只有很少的信息。

我很乐意帮助弄清楚到底发生了什么!

0 个答案:

没有答案