freelawproject / juriscraper

An API to scrape American court websites for metadata.
https://free.law/juriscraper/
BSD 2-Clause "Simplified" License
365 stars 109 forks source link

Docket Parse Error: IndexError: list index out of range #713

Open sentry-io[bot] opened 1 year ago

sentry-io[bot] commented 1 year ago

Sentry Issue: COURTLISTENER-4PG

_RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/concurrent/futures/process.py", line 256, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/courtlistener/cl/recap/tasks.py", line 488, in parse_docket_text
    return report.data
           ^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/juriscraper/pacer/docket_report.py", line 389, in data
    return super().data
           ^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/juriscraper/pacer/docket_report.py", line 70, in data
    data["parties"] = self.parties
                      ^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/juriscraper/pacer/docket_report.py", line 593, in parties
    self._add_criminal_data_to_parties(parties, party_rows)
  File "/usr/local/lib/python3.11/site-packages/juriscraper/pacer/docket_report.py", line 750, in _add_criminal_data_to_parties
    parties[current_party_i][...
IndexError: list index out of range
(17 additional frame(s) were not displayed)
...
  File "concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
  File "concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "cl/recap/views.py", line 56, in perform_create
    await process_recap_upload(pq)
  File "cl/recap/tasks.py", line 110, in process_recap_upload
    docket = await process_recap_docket(pq.pk)
  File "cl/recap/tasks.py", line 526, in process_recap_docket
    data = await asyncio.get_running_loop().run_in_executor(
sentry-io[bot] commented 1 year ago

Sentry issue: COURTLISTENER-4S7