【问题标题】:Masonite throw Invalid secret key error, even after secret key is createdMasonite 抛出 Invalid secret key 错误,即使在创建了密钥之后也是如此
【发布时间】:2018-09-12 05:20:28
【问题描述】:

我正在尝试设置会话 request.session.set('request_token', oauth.request_token) 它正在抛出

InvalidSecretKey > 您传递的密钥无效: 你的密钥。确保您已正确添加您的密钥。

我做了craft key --store 来创建一个密钥并存储它。

Masonite masonite==2.0.20pipenv 用于包管理。

【问题讨论】:

    标签: pipenv python-3.7 masonite


    【解决方案1】:

    只需停用虚拟环境并再次启用即可解决问题。 看起来pipenv 缓存了.env 变量。

    $ deactivate
    $ pipenv shell
    

    【讨论】:

      猜你喜欢
      • 2023-03-25
      • 2017-03-11
      • 1970-01-01
      • 2022-01-27
      • 1970-01-01
      • 1970-01-01
      • 2018-05-31
      • 2020-12-10
      • 1970-01-01
      相关资源
      最近更新 更多