-
Notifications
You must be signed in to change notification settings - Fork 140
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
sam build obscures pip ssl errors #363
Comments
I agree, that's not a very helpful message. The way it's currently done is by executing I don't have an easy way to reproduce this right now; but assuming |
18 $ pip download path This is the output I get from running pip download without configuring the cert. Not sure what cert chain it's looking at that has a self-signed cert in there. There are probably more common errors that would cause failures, too. Configuring pip to look for certs in an empty file might get some decent sample error output. |
After half an hour trying, I found this can be worked around by
Hooray! |
@kigawas This solved my problem! Mucho gracias! |
Thanks for providing a resolution for this issue @kigawas ! I will move this issue to Lambda Builders repository to add more detailed error messages for such cases. |
Description:
When running in an environment that requires you to pass a cert to pip, running sam build fails with an ssl error. There is no way to directly specify a cert file via a flag to the sam build command, the way you can when running pip directly. In many cases (e.g. when all your requirements are already available locally) the traceback you receive makes no mention of an ssl error.
The only way to specify a cert is to write a pip config file that sets the ssl file path, which is a bit cumbersome for a CI pipeline run.
Steps to reproduce:
Run sam build in an environment that requires you to pass a cert file to pip
Observed result:
Expected result:
The error output clearly states that the build failed because a cert needs to be specified, and there is a more intuitive, documented way of specifying that cert.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: SAM CLI, version 1.15.0Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: