我正在编写一个需要连接到Google进行身份验证的Google AppEngine python应用程序。我必须更改我过去5天试图弄清楚的事情:此应用程序以前会在localhost上部署时运行(并执行所述身份验证)但现在却无法执行此操作。然而,一旦我部署到appengine,这个错误就不复存在了。我已经确定它不是互联网连接问题,因为我已经将它部署在另一台计算机上,它仍然给我同样的错误。
这是堆栈跟踪的样子
Traceback (most recent call last):
File "C:\Program Files\Google\google_appengine\google\appengine\ext\webapp\_webapp25.py", line 701, in __call__
handler.get(*groups)
File "C:\Users\username\Desktop\AppEngine Things\engineapp\main.py", line 372, in get
creds = self.GetCodeCredentials()
File "C:\Users\username\Desktop\AppEngine Things\engineapp\main.py", line 323, in GetCodeCredentials
creds = oauth_flow.step2_exchange(code)
File "lib\oauth2client\client.py", line 883, in step2_exchange
headers=headers)
File "lib\httplib2\__init__.py", line 1445, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "lib\httplib2\__init__.py", line 1197, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "lib\httplib2\__init__.py", line 1167, in _conn_request
response = conn.getresponse()
File "lib\httplib2\__init__.py", line 999, in getresponse
raise httplib.HTTPException()
HTTPException
答案 0 :(得分:0)
在命令行上通过dev_appserver.py
运行应用程序似乎解决了这个问题。我真的不太了解为什么会这样。所以现在我不能将GUI启动器用于sdk