代码
app=App(
token=os.environ.get("SLACK_BOT_TOKEN1"),
signing_secret=os.environ.get("SLACK_SIGNING_SECRET1")
)
命令
当我回显时能够看到值
echo %SLACK_BOT_TOKEN1%
echo %SLACK_SIGNING_SECRET1%
错误输出
File "C:/Users/A6002043/PycharmProjects/workflow-steps/app.py", line 12, in <module>
app=App(
File "C:\Users\A6002043\AppData\Local\Programs\Python\Python38\lib\site-packages\slack_bolt\app\app.py", line 110, in __init__
raise BoltError(error_signing_secret_not_found())
slack_bolt.error.BoltError: Signing secret not found, so could not initialize the Bolt app.Copy your Signing Secret from the Basic Information page and then store it in a new environment variable