红人网事 |
解决用GoogleAppEngineLauncher部署应用时的InvalidCertificateException错误 Posted: 20 Aug 2012 05:31 PM PDT 部署GAE应用时经常会遇到这种错误: Traceback (most recent call last): …… File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py", line 170, in connect 'hostname mismatch') fancy_urllib.InvalidCertificateException: Host appengine.google.com returned an invalid certificate (hostname mismatch): {'notAfter': 'Apr 11 00:14:07 2013 GMT', 'subjectAltName': (('DNS', '*.mail.google.com'), ('DNS', '*.docs.google.com'), ('DNS', '*.talkgadget.google.com'), ('DNS', '*.sites.google.com'), ('DNS', '*.plus.google.com'), ('DNS', '*.drive.google.com')), 'subject': ((('countryName', u'US'),), (('stateOrProvinceName', u'California'),), (('localityName', u'Mountain View'),), (('organizationName', u'Google Inc'),), (('commonName', u'*.mail.google.com'),))} To learn more, see http://code.google.com/appengine/kb/general.html#rpcssl 原因就是我为了避免被墙而改了hosts文件,在验证appengine.google.com的证书时就不认可了。不过解决办法也很简单,暂时恢复原始的host文件,待部署完毕之后再将host文件改回来即可。 |
You are subscribed to email updates from OnTheRoad To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
没有评论:
发表评论