【发布时间】:2020-08-02 05:23:51
【问题描述】:
我正在使用 Node.js 8.x 中的 GCP Secrets Manager(我知道,它很古老,但它是 Cloud Functions 上最新的 GA Node 运行时)。但是,当我运行他们的示例时,它不断从this line 抛出 gRPC 错误:
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object
我正在尝试测试的代码行:
const secretClient = new SecretManagerServiceClient();
如果我在节点 8.x 或节点 10.x 上运行,并且如果我使用最新版本的机密库 (3.0.0) 或节点 8.x 的旧版本 ( 1.2.1)
【问题讨论】:
标签: node.js google-cloud-platform google-secret-manager