question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pass kwargs to create_multipart_upload

See original GitHub issue

Hi 👋

We have some kwargs going into create_multipart_upload (using smart_open under the hood, tested with real s3):

kwargs = {'ACL': 'authenticated-read', 'StorageClass': 'STANDARD_IA', 'Metadata': {'summary': 'summary', 'name': 'mypkg', 'version': '1.1'}}
s3.create_multipart_upload(Bucket=..., Key=..., **kwargs)

Can this currently be mocked? It looks like the mocked method does not take any CamelCase arguments 🤔

Currently, these kwargs seem to be ignored, as they go missing in a round trip.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
ddelangecommented, Jun 23, 2022

Yup, test was passing an empty BytesIO() to smart_open. Adding some bytes solved StorageClass showing up 👍

0reactions
ddelangecommented, Jun 23, 2022

Many thanks! Looking into StorageClass going missing, most likely not on your side.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AccessDenied when calling the CreateMultipartUpload ...
I want to use django-storages to store my model files in Amazon S3 but I get Access Denied error. I have granted the...
Read more >
CreateMultipartUpload - Amazon Simple Storage Service
This action initiates a multipart upload and returns an upload ID. This upload ID is used to associate all of the parts in...
Read more >
S3 — Boto3 Docs 1.26.34 documentation - AWS
Closes underlying endpoint connections. complete_multipart_upload (**kwargs)¶. Completes a multipart upload by assembling previously uploaded parts. You ...
Read more >
s3fs and server side encryption · Issue #15 - GitHub
Since awswrangler uses s3fs under the hood, I have been trying to figure out if there is a way to pass the KMS...
Read more >
Dell EMC PowerScale: OneFS S3 API Guide
This API Initiates a multipart upload and returns an upload ID. Table 14 shows the details about the OneFS. S3 CreateMultipartUpload API request...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found