GAE - Deployment Error: “AttributeError: can't set attribute”

前端 未结 6 1724
有刺的猬
有刺的猬 2021-02-14 02:44

When I try to deploy my app I get the following error:

Starting update of app: flyingbat123, version: 0-1
Getting current resource limits.
Password for avigmati: Trac         


        
6条回答
  •  伪装坚强ぢ
    2021-02-14 02:57

    The error message indicates that there is a bug in our SDK. Because of this bug, you can not see the reason of the failure. However, this code block is called only when the authentication request ends up with 403 HTTP error.

    You can temporary tweak the file C:\Program Files (x86)\Google\google_appengine\google\appengine\tools\appengine_rpc.py as follows to see the actual reason(add logger.warn(body) line).

    except urllib2.HTTPError, e:
      if e.code == 403:
        body = e.read()
        # Add a line bellow to see the actual error
        logger.warn(body)
        response_dict = dict(x.split("=", 1) for x in body.split("\n") if x)
        raise ClientLoginError(req.get_full_url(), e.code, e.msg,
                               e.headers, response_dict)
      else:
        raise
    

    Once if you find the reason, this issue must be much easier to solve. After you solve the problem, I'd appreciate it if you could create an issue about this mysterious error message in our issue tracker?

提交回复
热议问题