将实体上传到Google应用引擎时出现InvalidCertificateException

时间:2013-11-24 12:27:56

标签: python google-app-engine

我正在尝试将实体批量上传到我的Google应用引擎数据存储区

我正按照此处的说明进行操作:https://developers.google.com/appengine/docs/python/tools/uploadingdata

我收到错误:fancy_urllib.InvalidCertificateException: Host my-app.appspot.com returned an invalid certificate (hostname mismatch): {'notAfter': 'Mar 6 00:00:00 2014 GMT', 'subjectAltName': (('DNS', '*.appspot.com'), ('DNS', '*.feelinsonice-hrd.appspot.com'), ('DNS', '*.tap-nexus.appspot.com'), ('DNS', '*.withgoogle.com'), ('DNS', 'appspot.com'), ('DNS', 'withgoogle.com')), 'subject': ((('countryName', u'US'),), (('stateOrProvinceName', u'California'),), (('localityName', u'Mountain View'),), (('organizationName', u'Google Inc'),), (('commonName', u'*.appspot.com'),))}

我的python版本是2.7.5所以我不认为我必须安装任何ssl插件,在这里描述:https://developers.google.com/appengine/kb/general?hl=pl&csw=1#rpcssl

我的命令是:

appcfg.py upload_data --config_file bulkloader.yaml --url=https://my-game.appspot.com/remote_api --filename entities.csv --kind=MyEntity -e myemail@gmail.com

1 个答案:

答案 0 :(得分:0)

通过从app engine sdk删除ceacerts.txt和ultrafetch_cacert.txt文件解决了这个问题:

/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources
/google_appengine/lib/cacerts/