I was running into a weird error with post-review.

Here's the post-review --debug

>>> RBTools 0.3.2
>>> Home = /path/to/home/dir
>>> svn info
>>> git rev-parse --git-dir
>>> git symbolic-ref -q HEAD
>>> git config --get branch.master.merge
>>> git config --get branch.master.remote
>>> git config remote.origin.url
>>> repository info: Path: /path/to/repo.git, Base path: , Supports 
changesets: False
>>> HTTP GETting api/
Traceback (most recent call last):
  File "/usr/bin/post-review", line 9, in <module>
    load_entry_point('RBTools==0.3.2', 'console_scripts', 'post-review')()
  File "/usr/lib/python2.6/site-packages/rbtools/postreview.py", line 3741, 
in main
  File "/usr/lib/python2.6/site-packages/rbtools/postreview.py", line 433, 
in check_api_version
    root_resource = self.api_get('api/')
  File "/usr/lib/python2.6/site-packages/rbtools/postreview.py", line 876, 
in api_get
    return self.process_json(self.http_get(path))
  File "/usr/lib/python2.6/site-packages/rbtools/postreview.py", line 812, 
in process_json
    rsp = json_loads(data)
  File "/usr/lib64/python2.6/json/__init__.py", line 307, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.6/json/decoder.py", line 319, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.6/json/decoder.py", line 338, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

I determined that the value of REVIEWBOARD_URL in my .reviewboardrc file was 
wrong. I corrected it and this fixed the error.

Would it be possible for post-review to generate a more helpful error 
message in this case?

Want to help the Review Board project? Donate today at 
Happy user? Let us know at http://www.reviewboard.org/users/
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to