從代理後面登錄的無服務器框架? (Serverless Framework Login From Behind a Proxy?)


問題描述

從代理後面登錄的無服務器框架? (Serverless Framework Login From Behind a Proxy?)

我正在嘗試從代理後面使用 無服務器框架

在配置 npm 以使用我的證書文件後,我能夠安裝框架:

npm config set cafile C:\path\to\certs.pem

npm install serverless ‑‑global

但是,當我嘗試登錄無服務器時,我得到了以下錯誤:

serverless login

Fetch Error ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ ‑‑‑‑‑‑‑‑‑‑‑‑‑

FetchError: 請求 https://api.serverless.com/core/tokens 失敗,原因:無法在 ClientRequest 獲取本地頒發者證書。(D:\...


參考解法

方法 1:

The cafile environment variable must be set before invoking login. On windows powershell:

$env:cafile = "C:\path\to\certs.pem"

(by Ramón J Romero y VigilRamón J Romero y Vigil)

參考文件

  1. Serverless Framework Login From Behind a Proxy? (CC BY‑SA 2.5/3.0/4.0)

#serverless #npm #serverless-framework






相關問題

計劃的 Lambda 函數無法進行第 3 方 API 調用 (Scheduled Lambda function not able to make 3rd party API calls)

如何創建具有公共讀取訪問權限的存儲桶? (How to create a bucket with Public Read Access?)

從代理後面登錄的無服務器框架? (Serverless Framework Login From Behind a Proxy?)

使用 AWS Lambda 對 Hasura 身份驗證掛鉤的空響應 (Empty response on Hasura auth hook using AWS Lambda)

從另一個 SAM 本地函數調用 AWS SAM 本地函數 (Invoke AWS SAM local function from another SAM local function)

package.json 文件在錯誤的文件夾中創建 (package.json file created in the wrong folder)

混合 Terraform 和無服務器框架 (Mixing Terraform and Serverless Framework)

將基於本地的每週商店時間轉換為 GMT 每週時間 (convert local based weekly store timings to GMT weekly timing)

從 AWS Lambda 函數創建 CloudFormation 堆棧,傳遞 API Gateway 參數 (Create CloudFormation stack from AWS Lambda function, passing API Gateway parameters)

減少我的 Express 應用程序的代碼大小 (Reduce code size of my Express application)

AWS Lambda 函數全局變量 (AWS Lambda function global variables)

我可以備份無服務器 SQL 池數據庫嗎? (Can I backup Serverless SQL pool Database?)







留言討論