gpt4 book ai didi

google-app-engine - Google App Engine 上的 SSL 证书

转载 作者:太空宇宙 更新时间:2023-11-03 15:36:51 25 4
gpt4 key购买 nike

我在开始使用 GAE(1.7.6 在 OS X 10.6.8 和 Python 2.7 上)时遇到了问题,与亚马逊服务相比,它是糟糕透顶的。但是,我想至少部署示例应用程序。在解决其他问题后,我现在有一个小示例应用程序可以部署了。当我尝试部署它时,我收到如下 SSL 错误:

 *** Running appcfg.py with the following flags:
--no_cookies --email=mathsboy@gmail.com --passin update
02:15 PM Host: appengine.google.com
02:15 PM Application: tew-helloworld; version: 1
Traceback (most recent call last):
File "google_appengine/appcfg.py", line 171, in <module>
run_file(__file__, globals())
File "google_appengine/appcfg.py", line 167, in run_file
execfile(script_path, globals_)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 4155, in <module>
main(sys.argv)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 4146, in main
result = AppCfgApp(argv).Run()
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 2334, in Run
self.action(self)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 3881, in __call__
return method()
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appcfg.py", line 2892, in Update
updatecheck.CheckForUpdates()
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/sdk_update_checker.py", line 258, in CheckForUpdates
runtime=runtime))
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/appengine_rpc.py", line 393, in Send
f = self.opener.open(req)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 394, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 412, in _open
'_open', req)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 372, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1207, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/fancy_urllib/fancy_urllib/__init__.py", line 383, in do_open
url_error.reason.args[1])
fancy_urllib.InvalidCertificateException: Host appengine.google.com returned an invalid certificate (_ssl.c:503: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed):
To learn more, see http://code.google.com/appengine/kb/general.html#rpcssl
If deploy fails you might need to 'rollback' manually.
The "Make Symlinks..." menu option can help with command-line work.
*** appcfg.py has finished with exit code 1 ***

在另一个线程中有一些关于此的建议,指出您需要删除 cacerts.txt,尽管我无法在 OS X 上找到此文件。另外,为了上传代码我似乎很迟钝d 必须删除一个 cacert 文本文件。但也许我是个白痴。

我在这里面临的另一个问题是,由于难以管理 python 版本,OS X 不能很好地与 GAE 一起工作。在安装了多个版本的 python、EPD、ActiveState、MacPorts 之后,我现在手头一团糟。尽管他们保证会,但这些都没有解决我早期的问题。谷歌应用程序管理的现状真是令人震惊。看起来 GAE 是由一群来自 90 年代中期的微软人构建的……任何对上述问题的建议都将不胜感激。干杯

最佳答案

错误中从末尾算起的第四行。链接下有相关说明。

http://code.google.com/appengine/kb/general.html#rpcssl

确保(来自文档):

为此,您必须在系统上安装 ssl Python 模块。

关于google-app-engine - Google App Engine 上的 SSL 证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15650428/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com