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

FileNotFoundError: File does not exist: archive/tz-znz/2024/tz-znz-government-gazette-legal-supplement-(part-i)-date... #2236

Open
sentry-io bot opened this issue Jan 16, 2025 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@sentry-io
Copy link

sentry-io bot commented Jan 16, 2025

Sentry Issue: LII-2SW

ClientError: An error occurred (404) when calling the HeadObject operation: Not Found
(1 additional frame(s) were not displayed)
...
  File "storages/backends/s3.py", line 131, in __init__
    self.obj.load(**params)
  File "boto3/resources/factory.py", line 565, 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 569, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "botocore/client.py", line 1023, in _make_api_call
    raise error_class(parsed_response, operation_name)

FileNotFoundError: File does not exist: archive/tz-znz/2024/tz-znz-government-gazette-legal-supplement-(part-i)-dated-2024-02-23-no-7206.pdf
(19 additional frame(s) were not displayed)
...
  File "peachjam_search/documents.py", line 379, in _prepare_action
    info = super()._prepare_action(object_instance, action)
  File "peachjam_search/documents.py", line 282, in prepare_pages
    text = instance.get_content_as_text()
  File "peachjam/models/core_document.py", line 751, in get_content_as_text
    self.update_text_content()
  File "peachjam/models/core_document.py", line 756, in update_text_content
    self.document_content = DocumentContent.update_or_create_for_document(self)
  File "peachjam/models/core_document.py", line 884, in update_or_create_for_document
    shutil.copyfileobj(pdf, tmp)
@sentry-io sentry-io bot added the bug Something isn't working label Jan 16, 2025
@longhotsummer longhotsummer added this to the 2025-Q1 milestone Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant