Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntegrityError: "pacer_case_id" is not available on some RECAP appellate attachment pages uploads #365

Open
sentry-io bot opened this issue Feb 2, 2024 · 1 comment

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 2, 2024

I checked some of the uploads related to this issue and found that the caseID is either blank or null in all the URLs within the upload, for example:

TransportRoom?servlet=ShowDoc&caseId=null&recapDocNum=1&recapCaseNum=20-15019&dls_id='+dls+'&caseId=

TransportRoom?servlet=ShowDocMulti&caseId=null&recapDocNum=1&recapCaseNum=20-15019&outputType=doc&d=11552967&outputForm=view&incPdfFooter=

As a result, the PQ receives a null pacer_case_id and it is also missing in the parsed data. I'm not sure if there is a different way to obtain it from the extension side, or perhaps the pacer_doc_id (available), court (available), and docket number (which is not being parsed or received in the upload) from the attachment page could be used to search for the case and docket entry.

Sentry Issue: COURTLISTENER-5T3

NotNullViolation: null value in column "pacer_case_id" of relation "recap_processingqueue" violates not-null constraint
DETAIL:  Failing row contains (12306355, 2024-02-02 00:38:06.681483+00, 2024-02-02 00:38:06.828818+00, null, , null, recap_processing_queue/2024/02/02/4acf2bbeb8e94349ba376a8114cb4e..., 4, 6, , ca5, 7742, null, null, null, null, f).
  File "django/db/backends/utils.py", line 105, in _execute
    return self.cursor.execute(sql, params)
  File "psycopg/cursor.py", line 732, in execute
    raise ex.with_traceback(None)

IntegrityError: null value in column "pacer_case_id" of relation "recap_processingqueue" violates not-null constraint
DETAIL:  Failing row contains (12306355, 2024-02-02 00:38:06.681483+00, 2024-02-02 00:38:06.828818+00, null, , null, recap_processing_queue/2024/02/02/4acf2bbeb8e94349ba376a8114cb4e..., 4, 6, , ca5, 7742, null, null, null, null, f).
(24 additional frame(s) were not displayed)
...
  File "cl/recap/views.py", line 65, in perform_create
    await asyncio.shield(recap_upload_task)
  File "cl/recap/tasks.py", line 127, in process_recap_upload
    await process_recap_appellate_attachment(pq.pk)
  File "cl/recap/tasks.py", line 1142, in process_recap_appellate_attachment
    await pq.asave()

Filed by: @albertisfu

@mlissner mlissner transferred this issue from freelawproject/courtlistener Feb 2, 2024
@mlissner
Copy link
Member

mlissner commented Feb 2, 2024

Thanks. Yeah, I think the better place to solve this is in the extension, so I'll migrate it there.

@mlissner mlissner transferred this issue from freelawproject/recap-chrome Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant