Google App Engine上的Bulkloader:凭证错误或不支持的认证类型(如OpenId)
我在尝试自动生成我的Google App Engine Datastore的批量加载器配置文件时遇到了这个错误。
Authentication Failed: Incorrect credentials or unsupported authentication type (e.g. OpenId)
我使用的appcfg.py命令是
create_bulkloader_config --filename=bulkloader_config.yaml --url=http://APPID.appengine.com/_ah/remote_api --application=APPID
在MacOS Mavericks系统上,使用的是Python 2.7。
3 个回答
1
我试过上面所有的方法都没用。最后我找到的解决办法是进行一次更新,并且加上oauth2这个标志。然后一切就正常了:
appcfg.py --oauth2 update app.yaml
1
这是我使用的内容:
appcfg.py create_bulkloader_config --url=http://APPID.appengine.com/_ah/remote_api --filename=bulkloader.yaml --application=s~APPID
(注意在你的应用程序ID前面加上s~
。)
2
我也遇到过同样的问题。
appcfg.py download_data --url=http://APP_ID.appspot.com/_ah/remote_api --filename=FNAME
我首先运行了这个命令,这对我有帮助:
appcfg.py update .
在运行了 appcfg.py update
之后,download_data
提示我:
Please enter login credentials for APP_ID.appspot.com
Email: