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

boto3/botocore 1.36 compatibility #1322

Open
torgeirl opened this issue Jan 24, 2025 · 0 comments
Open

boto3/botocore 1.36 compatibility #1322

torgeirl opened this issue Jan 24, 2025 · 0 comments
Labels
Milestone

Comments

@torgeirl
Copy link
Collaborator

Issue
boto3/botocore v1.36 released last week, and have caused issues building Tar files for admins and examiners:

[ERROR] devilry.devilry_group.tasks: Failed to generate zip archive from feedbackset 123456789
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/devilry/devilry_group/tasks.py", line 55, in execute
    zipfile_backend.close()
  File "/usr/local/lib/python3.11/site-packages/devilry/devilry_compressionutil/backends/backends_base.py", line 251, in close
    self._archivefile.close()
  File "/usr/local/lib/python3.11/site-packages/storages/backends/s3.py", line 283, in close
    self._flush_write_buffer()
  File "/usr/local/lib/python3.11/site-packages/storages/backends/s3.py", line 247, in _flush_write_buffer
    response = part.upload(Body=self.file.read())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/boto3/resources/factory.py", line 581, in do_action
    response = action(self, *args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/boto3/resources/action.py", line 88, in __call__
    response = getattr(parent.meta.client, operation_name)(*args, **params)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/botocore/client.py", line 569, in _api_call
    return self._make_api_call(operation_name, kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/botocore/client.py", line 1023, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.errorfactory.InvalidRequest: An error occurred (InvalidRequest) when calling the UploadPart operation: Checksum Type mismatch occurred, expected checksum Type: null, actual checksum Type: crc32

Workaround
Downgrading to boto3/botocore v1.35.*

@torgeirl torgeirl added the bug label Jan 24, 2025
@torgeirl torgeirl added this to the Devilry 6.4 milestone Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant