bibanon / BASC-Archiver

Python-based Imageboard (4chan) complete thread archiver.
https://pypi.python.org/pypi/BASC-Archiver/
134 stars 18 forks source link

Threads excepting #25

Open DanielOaks opened 8 years ago

DanielOaks commented 8 years ago

Just some crashes/errors I've been running into.

Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "<basc-archiver-root>/basc-archiver/basc_archiver/sites/base.py", line 62, in run
    self.site.download_item(next_item)
  File "<basc-archiver-root>/basc-archiver/basc_archiver/sites/fourchan.py", line 252, in download_item
    new_replies = len(running_thread.all_posts)
AttributeError: 'NoneType' object has no attribute 'all_posts'
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "<basc-archiver-root>/basc-archiver/basc_archiver/sites/base.py", line 62, in run
    self.site.download_item(next_item)
  File "<basc-archiver-root>/basc-archiver/basc_archiver/sites/fourchan.py", line 307, in download_item
    utils.download_json(local_filename, url, clobber=True)
  File "<basc-archiver-root>/basc-archiver/basc_archiver/utils.py", line 50, in download_json
    original_data = json.loads(open(local_filename).read())
  File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 384, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "<basc-archiver-root>/basc-archiver/basc_archiver/sites/base.py", line 62, in run
    self.site.download_item(next_item)
  File "<basc-archiver-root>/basc-archiver/basc_archiver/sites/fourchan.py", line 219, in download_item
    new_replies = thread['thread'].update()
  File "build/bdist.macosx-10.10-x86_64/egg/basc_py4chan/thread.py", line 186, in update
    res.raise_for_status()
  File "/usr/local/lib/python2.7/site-packages/requests/models.py", line 851, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
HTTPError: 502 Server Error: Bad Gateway