freelawproject / courtlistener

A fully-searchable and accessible archive of court data including growing repositories of opinions, oral arguments, judges, judicial financial records, and federal filings.
https://www.courtlistener.com
Other
513 stars 139 forks source link

ValidationError: Multiple duplicate values violate save constraint and we are unable to fix it automatically for r... #3360

Open sentry-io[bot] opened 8 months ago

sentry-io[bot] commented 8 months ago

Finally got one of these. IIRC, @ttys0dev, you had put this trip wire in place, right? Interested in taking another look at it? If so, how can we help?

Sentry Issue: COURTLISTENER-5D2

ClientError: An error occurred (404) when calling the HeadObject operation: Not Found
(1 additional frame(s) were not displayed)
...
  File "storages/backends/s3boto3.py", line 119, in __init__
    self.obj.load()
  File "boto3/resources/factory.py", line 564, in do_action
    response = action(self, *args, **kwargs)
  File "boto3/resources/action.py", line 88, in __call__
    response = getattr(parent.meta.client, operation_name)(*args, **params)
  File "botocore/client.py", line 535, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "botocore/client.py", line 980, in _make_api_call
    raise error_class(parsed_response, operation_name)

FileNotFoundError: File does not exist: recap/gov.uscourts.nysb.267146/gov.uscourts.nysb.267146.545.0_2.pdf
  File "cl/lib/microservice_utils.py", line 55, in microservice
    item.filepath_local.open(mode="rb"),

ValidationError: Multiple duplicate values violate save constraint and we are unable to fix it automatically for rd: None
(12 additional frame(s) were not displayed)
...
  File "cl/recap/views.py", line 56, in perform_create
    await process_recap_upload(pq)
  File "cl/recap/tasks.py", line 119, in process_recap_upload
    await process_recap_pdf(pq.pk)
  File "cl/recap/tasks.py", line 361, in process_recap_pdf
    response = await microservice(
  File "cl/lib/microservice_utils.py", line 60, in microservice
    await clean_up_recap_document_file(item)
  File "cl/search/models.py", line 1468, in save
    raise ValidationError(
ttys0dev commented 8 months ago

Finally got one of these. IIRC, @ttys0dev, you had put this trip wire in place, right?

I don't think so, I mean that's just a library network error or something right?

mlissner commented 8 months ago

Later in the trace it says:

ValidationError: Multiple duplicate values violate save constraint and we are unable to fix it automatically for rd: None

Which I thought was yours?

ttys0dev commented 8 months ago

Which I thought was yours?

Git blame blames you.

mlissner commented 8 months ago

Sure enough...my bad!

sentry-io[bot] commented 5 months ago

Seems related:

Sentry issue: COURTLISTENER-2Y9

Linked by: @albertisfu

sentry-io[bot] commented 5 months ago

Related: Sentry Issue: COURTLISTENER-3XF

Linked by: @albertisfu