berkus / rietveld

Code review tool from Guido for Django
code.google.com/p/rietveld
Apache License 2.0
0 stars 0 forks source link

Error 302 when attempting to use upload.py in OS X on a Google Apps hosted rietveld instance #327

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Greetings. I am using Python 2.7.1 on OS X Lion. I am trying to upload a git 
diff using upload.py. I was able to perform this no problem using the generic 
upload.py that points to codereview.appspot.com. However, after downloading my 
Google Apps domain's upload.py (attached) and attempting to upload to our 
instance of rietveld I am unable to accomplish an upload.

I've tried a lot of different command line settings. The most well specified 
command was:
./upload.py --rev HEAD -r jon@appboy.com --cc=bill@appboy.com -m "Testing code 
review upload" --account_type=HOSTED -e bill@appboy.com 
--server=http://codereview.appboy.com --noisy --no_cookies

When I do this, I get prompted for my password 4 times and then get the below 
error. No issue is ever created. If I type my password in wrong, I am told the 
password is invalid, so I suspect that it is actually authenticating.

Traceback (most recent call last):
  File "./upload.py", line 2234, in <module>
    main()
  File "./upload.py", line 2226, in main
    RealMain(sys.argv)
  File "./upload.py", line 2191, in RealMain
    response_body = rpc_server.Send("/upload", body, content_type=ctype)
  File "./upload.py", line 393, in Send
    f = self.opener.open(req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 398, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 511, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 436, in error
    return self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 370, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 519, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 302: Found

Thanks,
Bill

Original issue reported on code.google.com by billmag687 on 10 Aug 2011 at 3:33

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by albrecht.andi on 10 Aug 2011 at 3:40

GoogleCodeExporter commented 9 years ago

Original comment by albrecht.andi on 6 Apr 2012 at 7:19