serverless / serverless

⚡ Serverless Framework – Effortlessly build apps that auto-scale, incur zero costs when idle, and require minimal maintenance using AWS Lambda and other managed cloud services.
https://serverless.com
MIT License
46.37k stars 5.69k forks source link

serverless deploy not picking up cacert file during python packaging on windows #6637

Open RamonJRV opened 5 years ago

RamonJRV commented 5 years ago

This is a Bug Report

Description

I am able to use a .pem file to do serverless login using the cafile environment variable.

However, during the serverless deploy phase I get an error while packaging:

Serverless: Packaging service... Serverless: Excluding development dependencies... Serverless: Injecting required Python packages to package... Serverless: Recoverable error occurred (unable to get local issuer certificate), sleeping for 5 seconds. Try 1 of 4 Serverless: Recoverable error occurred (unable to get local issuer certificate), sleeping for 5 seconds. Try 2 of 4 Serverless: Recoverable error occurred (unable to get local issuer certificate), sleeping for 5 seconds. Try 3 of 4 Serverless: Recoverable error occurred (unable to get local issuer certificate), sleeping for 5 seconds. Try 4 of 4

Serverless Error ---------------------------------------

unable to get local issuer certificate

I have an outstanding stackoverflow question regarding the same question.

I would expect deploy to use the same certificate as login while packaing.

I have tried the following solutions with no benefit:

Similar or dependent issues:

Additional Data

dschep commented 5 years ago

Hi, I've just released an update to @serverless/platform-sdk that should resolve this issue. Please update with npm i -g serverless and confirm with sls --version that the SDK version is 2.1.1

angelcervera commented 4 years ago

Facing the same problem on linux. SDK 2.2.1

CJohnsonLehi commented 4 years ago

still having this problem on SDK version 2.3.0

bla (~/code/bla/test-sls) $ serverless deploy (node:62118) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification. Serverless: Packaging service... Serverless: Excluding development dependencies... Serverless: Recoverable error occurred (unable to get local issuer certificate), sleeping for ~4 seconds. Try 1 of 4 Serverless: Recoverable error occurred (unable to get local issuer certificate), sleeping for ~6 seconds. Try 2 of 4 Serverless: Recoverable error occurred (unable to get local issuer certificate), sleeping for ~6 seconds. Try 3 of 4 Serverless: Recoverable error occurred (unable to get local issuer certificate), sleeping for ~4 seconds. Try 4 of 4

Serverless Error ---------------------------------------

Could not locate deployment bucket. Error: unable to get local issuer certificate

Get Support -------------------------------------------- Docs: docs.serverless.com Bugs: github.com/serverless/serverless/issues Issues: forum.serverless.com

Your Environment Information --------------------------- Operating System: darwin Node Version: 12.16.1 Framework Version: 1.65.0 Plugin Version: 3.4.1 SDK Version: 2.3.0 Components Version: 2.22.3

olekdes commented 3 years ago

Facing the same issue on Windows 10, SDK 4.3.0