Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2515 by Exception thrown when trying to post a review to an http basic auth backed instance of review board

Server setup:
- python 2.7.1
- centos 5.5

Client setup
- python 2.7.1
- rbtools 0.4.1

- problem only occurs when a username is not specified on the command line or in the rc file.

post-review --parent=${review_hash}
Traceback (most recent call last):
  File "/usr/local/bin/post-review", line 9, in <module>
load_entry_point('', 'console_scripts', 'post-review')() File "/Library/Python/2.7/site-packages/", line 1222, in main
    if not server.check_api_version():
File "/Library/Python/2.7/site-packages/", line 226, in check_api_version
    root_resource = self.api_get('api/')
File "/Library/Python/2.7/site-packages/", line 669, in api_get
    return self.process_json(self.http_get(path))
File "/Library/Python/2.7/site-packages/", line 639, in http_get
    rsp = urllib2.urlopen(url).read()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 126, in urlopen
    return, data, timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 400, in open
    response = meth(req, response)
File "/Library/Python/2.7/site-packages/", line 97, in http_response
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 432, in error
    result = self._call_chain(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 372, in _call_chain
    result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 884, in http_error_401
    url, req, headers)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/", line 859, in http_error_auth_reqed
    response = self.retry_http_basic_auth(host, req, realm)
File "/Library/Python/2.7/site-packages/", line 129, in retry_http_basic_auth
    if response.code != 401:
AttributeError: 'NoneType' object has no attribute 'code'

Git bisect led me to being the culprit where the realm is being compared to a hard coded string 'Web API'.

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to