Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

S3 Package Uploads / Downloads are corrupted #221

Closed
vjm opened this issue Oct 24, 2019 · 3 comments
Closed

S3 Package Uploads / Downloads are corrupted #221

vjm opened this issue Oct 24, 2019 · 3 comments

Comments

@vjm
Copy link

vjm commented Oct 24, 2019

  • Description: When uploading source distribution packages (eg tar.gz, zip), they seem to upload fine but are corrupted in reality.
  • Possible Issue: I think that this is due to the way that the boto client is being used to upload files, but am not sure.
  • Environment: S3 Storage, Dynamo Cache, Deployed using Serverless Framework / Lambda, serverless-wsgi plugin
  • Note: The packages I am generating work locally to install before upload, and I am able to successfully download and install if I directly upload the package to S3 after the original package upload through twine, which makes me confident it must be related to the upload process.

Any thoughts?

@vjm
Copy link
Author

vjm commented Oct 24, 2019

update: I found the issue -- API gateway was refusing those binary data types (application/zip, application/gzip) -- what is the correct datatype for whl?

@stevearc
Copy link
Owner

I think that is the correct data type. Wheels are just zipfiles https://www.python.org/dev/peps/pep-0427/

@stevearc
Copy link
Owner

Closing as this seems to be caused by the API gateway

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants