googleappengine-sdk:localhost上的HTTP异常;在appengine上运行完美



我正在编写一个Google AppEngine python应用程序,该应用程序需要连接到Google进行身份验证。我一定改变了过去5天一直在努力弄清楚的事情:这个应用程序以前在本地主机上部署时会运行(并执行所述身份验证),但现在没有这样做。然而,一旦我部署到appengine,这个错误就不存在了。我已经确定这不是互联网连接问题,因为我已经在另一台计算机上部署了它,但它仍然会给我同样的错误。

以下是堆栈跟踪的

Traceback (most recent call last):
  File "C:Program FilesGooglegoogle_appenginegoogleappengineextwebapp_webapp25.py", line 701, in __call__
    handler.get(*groups)
  File "C:UsersusernameDesktopAppEngine Thingsengineappmain.py", line 372, in get
    creds = self.GetCodeCredentials()
  File "C:UsersusernameDesktopAppEngine Thingsengineappmain.py", line 323, in GetCodeCredentials
    creds = oauth_flow.step2_exchange(code)
  File "liboauth2clientclient.py", line 883, in step2_exchange
    headers=headers)
  File "libhttplib2__init__.py", line 1445, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "libhttplib2__init__.py", line 1197, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "libhttplib2__init__.py", line 1167, in _conn_request
    response = conn.getresponse()
  File "libhttplib2__init__.py", line 999, in getresponse
    raise httplib.HTTPException()
HTTPException

在命令行上通过dev_appserver.py运行应用程序似乎解决了问题。我真的不太明白为什么会这样。所以现在我不能将GUI启动器用于sdk

最新更新