Python 升级到gae 1.7.6后出现远程api错误-10061
切换到gae 1.7.6后,远程api不再工作。Python 升级到gae 1.7.6后出现远程api错误-10061,python,google-app-engine,python-2.7,Python,Google App Engine,Python 2.7,切换到gae 1.7.6后,远程api不再工作。 1.7.5工作正常 app.yaml 处理程序: -url:/rugad_remote.* #脚本:google.appengine.ext.remote_api.handler.application#1.7.5 脚本:google.appengine.ext.remote_api.handler.app#1.7.6 登录名:admin rugadweb.py 回溯(最近一次呼叫最后一次): 文件“C:\rugad\rugadweb.py”,第
1.7.5工作正常 app.yaml 处理程序:
-url:/rugad_remote.*
#脚本:google.appengine.ext.remote_api.handler.application#1.7.5
脚本:google.appengine.ext.remote_api.handler.app#1.7.6
登录名:admin rugadweb.py 回溯(最近一次呼叫最后一次): 文件“C:\rugad\rugadweb.py”,第28行,在 远程api存根。配置远程api(无,/rugad\u remote,/auth\u func,主机) 文件“C:\ProgramFiles(x86)\Google\Google\U appengine\Google\appengine\ext\remo te_api\remote_api_stub.py”,第725行,在ConfigureRemoteApi中 app_id=GetRemoteAppIdFromServer(服务器、路径、rtok) 文件“C:\ProgramFiles(x86)\Google\Google\U appengine\Google\appengine\ext\remo GetRemoteAppIdFromServer中的第568行“te_api\remote_api_stub.py” response=server.Send(路径,有效负载=None,**urlargs) 文件“C:\ProgramFiles(x86)\Google\Google\U appengine\Google\appengine\tools\ap pengine_rpc.py”,第393行,发送 f=自动开启器开启(要求) 文件“C:\Python27\lib\urllib2.py”,第394行,打开 响应=自身打开(请求,数据) 文件“C:\Python27\lib\urllib2.py”,第412行,处于打开状态 "开放", 文件“C:\Python27\lib\urllib2.py”,第372行,在调用链中 结果=func(*args) 文件“C:\Python27\lib\urllib2.py”,第1199行,在http\u open中 返回self.do_open(httplib.HTTPConnection,req) 文件“C:\Python27\lib\urllib2.py”,第1174行,在do\u open中 引发URL错误(err) urllib2.URLError:urlopen error[Errno 10061]Es konnte keine Verbindung herges tellt werden,这台电脑是一台很好的电脑
我也有同样的问题。 我使用“localhost:8080”而不是“127.0.0.1:8080”修复了它,并使用电子邮件地址进行登录
HOST = 'localhost:8080'
def auth_func():
return "user@example.com", "password"
remote_api_stub.ConfigureRemoteApi(None, '/rugad_remote', auth_func, HOST)
Traceback (most recent call last):
File "C:\rugad\rugadweb.py", line 28, in
remote_api_stub.ConfigureRemoteApi(None, '/rugad_remote', auth_func, HOST)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\remo
te_api\remote_api_stub.py", line 725, in ConfigureRemoteApi
app_id = GetRemoteAppIdFromServer(server, path, rtok)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\ext\remo
te_api\remote_api_stub.py", line 568, in GetRemoteAppIdFromServer
response = server.Send(path, payload=None, **urlargs)
File "C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\ap
pengine_rpc.py", line 393, in Send
f = self.opener.open(req)
File "C:\Python27\lib\urllib2.py", line 394, in open
response = self._open(req, data)
File "C:\Python27\lib\urllib2.py", line 412, in _open
'_open', req)
File "C:\Python27\lib\urllib2.py", line 372, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 1199, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\Python27\lib\urllib2.py", line 1174, in do_open
raise URLError(err)
urllib2.URLError: urlopen error [Errno 10061] Es konnte keine Verbindung herges
tellt werden, da der Zielcomputer die Verbindung verweigerte
HOST = 'localhost:8080'
def auth_func():
return "user@example.com", "password"
remote_api_stub.ConfigureRemoteApi(None, '/rugad_remote', auth_func, HOST)