3245: Can't see diff for some files

a.zhabo*******@gmai***** (Google Code) (Is this you? Claim this profile.)
March 14, 2014
RewviewBoard 1.7.21

Using bitbucket mercurial account



Diff currently unavailable.
Error: error
Details
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/diffviewer/views.py", line 251, in view_diff_fragment
    diff_file = get_requested_diff_file()
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/diffviewer/views.py", line 171, in get_requested_diff_file
    populate_diff_chunks(files, highlighting, request=request)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/diffviewer/diffutils.py", line 342, in populate_diff_chunks
    chunks = generator.get_chunks()
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/diffviewer/chunk_generator.py", line 137, in get_chunks
    large_data=True)
  File "/usr/local/lib/python2.7/dist-packages/Djblets-0.7.28-py2.7.egg/djblets/util/misc.py", line 157, in cache_memoize
    data = lookup_callable()
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/diffviewer/chunk_generator.py", line 136, in <lambda>
    lambda: list(self._get_chunks_uncached()),
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/diffviewer/chunk_generator.py", line 141, in _get_chunks_uncached
    old = get_original_file(self.filediff, self.request)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/diffviewer/diffutils.py", line 126, in get_original_file
    request=request)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/scmtools/models.py", line 192, in get_file
    large_data=True)[0]
  File "/usr/local/lib/python2.7/dist-packages/Djblets-0.7.28-py2.7.egg/djblets/util/misc.py", line 157, in cache_memoize
    data = lookup_callable()
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/scmtools/models.py", line 191, in <lambda>
    request)],
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/scmtools/models.py", line 284, in _get_file_uncached
    base_commit_id=base_commit_id)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/hostingsvcs/bitbucket.py", line 148, in get_file
    base_commit_id)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/hostingsvcs/bitbucket.py", line 198, in _api_get_src
    return self._api_get(url, raw_content=True)
  File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-1.7.21-py2.7.egg/reviewboard/hostingsvcs/bitbucket.py", line 249, in _api_get
    raise Exception(e.read())
Exception: error
david
#1 david
Hmm. It looks like this is getting an error from BitBucket's API that just says "error" (which is useless). Is there any pattern to which files are unavailable?
  • +NeedInfo
#2 a.zhabo*******@gmai***** (Google Code) (Is this you? Claim this profile.)
No, it could be any file... Is any way to get more info from bitbucket API response?
david
#3 david
You can try adding some additional logging to the relevant code in reviewboard/hostingsvcs/bitbucket.py
david
#4 david
  • -NeedInfo
    +UnableToReproduce