Hi,
I am running into an issue with a newly deployed instance of rietveld on Google App Engine.
When I set login: required to the app in the app.yaml file, the upload.py tool prompts me for my auth token 4 times and then fails with a 302 error.
Ernestos-MacBook-Pro:chronic erne$ ~/upload.py --oauth2 --no_oauth2_webbrowser --rev=origin/masterUpload server: <myapp>.appspot.com (change with -s/--server)New issue subject: testingGo to the following link in your browser: https://<myapp>.appspot.com/get-access-tokenand copy the access token.Enter access token: <my-access-token>Request: http://<myapp>.appspot.com/uploadGo to the following link in your browser: https://<myapp>.appspot.com/get-access-tokenand copy the access token.Enter access token: <my-access-token>Request: http://<myapp>.appspot.com/uploadGo to the following link in your browser: https://<myapp>.com/get-access-tokenand copy the access token.Enter access token: <my-access-token>Request: http://<myapp>.appspot.com/uploadGo to the following link in your browser: https://<myapp>.appspot.com/get-access-tokenand copy the access token.Enter access token: <my-access-token>Request: http://<myapp>.appspot.com/uploadTraceback (most recent call last): File "/Users/erne/upload.py", line 2721, in <module> main() File "/Users/erne/upload.py", line 2713, in main RealMain(sys.argv) File "/Users/erne/upload.py", line 2669, in RealMain response_body = rpc_server.Send("/upload", body, content_type=ctype) File "/Users/erne/upload.py", line 465, in Send f = self.opener.open(req, timeout=70) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open response = meth(req, response) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response 'http', request, response, code, msg, hdrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 448, in error return self._call_chain(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain result = func(*args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 531, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)urllib2.HTTPError: HTTP Error 302: Found Any ideas why this is happening?
Has anyone gotten upload.py to work with OAuth2 on a rietveld deployment with login: required on their app?
I see this comment, but it is from 5 years ago:
https://github.com/robfig/rietveld/issues/327