2013-11-01 25 views
0

我需要從我的appengine應用程序下載數據存儲。應用程序本身是用JAVA編寫的,我已經根據this instruction已經激活了遠程API。然後我跑appcfg.py,它要求我要登錄細節,我得到以下結果:AppEngine遠程API不斷返回302

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部署新版本)。

如果有幫助的應用程序配置爲: 認證類型:(實驗)聯合登入 數據存儲複製選項:高複製

我能做些什麼?我真的需要獲得生產數據的本地副本...

回答

0

呵呵。問題出在Note: Bulk upload and download is not supported for apps that use Federated (OpenID) authentication

我提出了一個解決方法 - 也許有人認爲它很有用。要下載數據,我已經使用Google帳戶身份驗證類型創建了第二個應用,並從this instruction上傳了簡單的python應用。這樣我就能夠將實體從我的源應用程序移動到目標,然後使用簡單的appcfg.py調用下載它...

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`