【问题标题】:Error: HTTP Error: 400, Request contains an invalid argument. when running firebase functions:config:set错误:HTTP 错误:400,请求包含无效参数。运行 firebase 功能时:配置:设置
【发布时间】:2021-06-12 07:13:18
【问题描述】:

我正在关注this tutorial。其中有一个步骤说明:

现在我们有了签名密钥和 API 密钥,让我们将它们作为环境变量添加到 Firebase 项目中,这样我们就不需要将它们签入到任何源代码控制中。

$ firebase functions:config:set \
    keys.webhooks="your_restricted_key" \
    keys.signing="your_signing_key"

所以我将受限密钥设置为我的 webhook 的 TOKEN 密钥,并将签名密钥设置为我的可发布密钥。然后我尝试在控制台中运行代码(上面代码中的命令)。

失败,返回如下错误:

错误:HTTP 错误:400,请求包含无效参数。

【问题讨论】:

    标签: typescript firebase terminal stripe-payments http-status-code-400


    【解决方案1】:

    去掉正斜杠:

    $ firebase functions:config:set 
        keys.webhooks="your_restricted_key" 
        keys.signing="your_signing_key"
    

    如果它不起作用,请告诉我,谢谢 NCT 127

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-12-11
      • 2021-01-28
      • 1970-01-01
      • 1970-01-01
      • 2020-01-06
      • 2019-05-10
      • 2018-03-30
      • 2012-09-07
      相关资源
      最近更新 更多