rietveld-codereview / rietveld

Code Review, hosted on Google App Engine
https://codereview.appspot.com
Apache License 2.0
557 stars 152 forks source link

traceback in File "upload.py", line 326, in _GetAuthToken #537

Closed RogerHaase closed 6 years ago

RogerHaase commented 8 years ago

It has been several months since I have used codereview.appspot.com. When attempting to upload a new patch over the last 2 days I am getting this traceback:

Traceback (most recent call last):
  File "upload.py", line 2721, in <module>
    main()
  File "upload.py", line 2713, in main
    RealMain(sys.argv)
  File "upload.py", line 2669, in RealMain
    response_body = rpc_server.Send("/upload", body, content_type=ctype)
  File "upload.py", line 447, in Send
    self._Authenticate()
  File "upload.py", line 502, in _Authenticate
    super(HttpRpcServer, self)._Authenticate()
  File "upload.py", line 382, in _Authenticate
    auth_token = self._GetAuthToken(credentials[0], credentials[1])
  File "upload.py", line 326, in _GetAuthToken
    response = self.opener.open(req)
  File "D:\Python27\lib\urllib2.py", line 410, in open
    response = meth(req, response)
  File "D:\Python27\lib\urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "D:\Python27\lib\urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "D:\Python27\lib\urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "D:\Python27\lib\urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found

Line 326 in upload.py is trying to open https://www.google.com/accounts/ClientAuth. Pointing my browser to that address also yields 404.

On this page https://github.com/rietveld-codereview/rietveld/wiki, clicking on the "Create Issue" link also yields a 404.

I am using Windows 10, Python 2.7.8, ISP is CableOne in Arizona.

pquentin commented 8 years ago

I have the same issue. What is going on?

martinthomson commented 8 years ago

Try the --oauth2 flag. That worked for me.

RogerHaase commented 8 years ago

Thanks, that works.

Hopefully, someone will update the docs at https://github.com/rietveld-codereview/rietveld/wiki.