aws / chalice

Python Serverless Microframework for AWS
Apache License 2.0
10.61k stars 1.01k forks source link

Chalice deploy extremely slow: Overwhelming amount fo 'b "ZipFile" output #2032

Open jdc891010 opened 1 year ago

jdc891010 commented 1 year ago

The chalice deploy is extremely slow, as in, it will take say 10-20 minutes to deploy, and each time I try, it shows an immense amount of code in the terminal, see below:

DEBUG:botocore.endpoint:Making request for OperationModel(name=UpdateFunctionCode) with params: {'url_path': '/2015-03-31/functions/fitness-session-dev/code', 'query_string': {}, 'method': 'PUT', 'headers':
 {'Content-Type': 'application/json', 'User-Agent': 'aws-chalice/1.27.3 Python/3.7.0 Windows/10 exec-env/AWS_Lambda aws-chalice/1.27.3 Botocore/1.29.104'}, 'body': b'{"ZipFile": "UEsDBBQAAAAIAAAAIQDS9eTPASE
AAPWGAAAGAAAAc2l4LnB5xT37c9s2k7/7r8Ap0zGVT+Eldtq7y9SdOo7T6D6/Tnaa9vJ5aIqELNYUqfJhW/3m/vfbB0CCT8lybs6TiUhgd7HYXSwWDwIvxFG8XCXB7TwTljcUe6/fvH6193rvtXgvoz/cRRCJC5nJJI2jnRc7L+AlWQRpGsSRCFIxl4mcrsRt4kaZ9Edilkgp4
pnw5m5yK0cii4UbrcSS8EU8zdwgCqJb4QoPSgVyAJvNgVAaz7IHN5EA7gs3TWMvcIGi8GMvX8goczMscRaEMhVWNpdicKkwBkMqxpduCPSAXczVmeIhyOZxnolEplkSeEhlBEBemPvIh84Og0WgykB0EkcK5IBwnkI9kNuRWMR+MMNfSZVb5tMwSOcj4QdIfJpnkJhioicjxIK
6/GuciFSGyBrQCIB7qnHJIUFhOUsUbKZElWLKwzxeVGsTIE+zPImgWElYfgyio1L/kF6GKYgwi8MwfsAKenHkB1iv9B2p7wpy3Wl8L6lKrPYozoBj5gN1sSxVrLLSuRuGYiqV5KBokLNbqVWCPKQZ2EHghmIZJ1RovbY2M/HpWFyef7z6cjg5FuNLcTE5/3X84fiDGBxewvtgJ
L6Mrz6df74SADE5PLv6XZx/FIdnv4u/j88+jMTxbxeT48tLcT4BYuPTi5PxMaSOz45OPn8Yn/0i3gPm2fmVOBmfjq+A7NU5FamIjY8vkdzp8eToE7wevh+fjK9+HwGpj+OrM6T78XwiDsXF4eRqfPT55HAiLj5PLs4vj4GFD0D4bHz2cQLlHJ8en13ZUC6kieNf4UVcfjo8OcH

This continue for a few minutes, and happens everytime I try to deploy, even if a zip file is present in the deployments dir.

I have tried to run it with and without "pandas" and "numpy" in the requirements.txt, still the same situation.