Closed slin-auradine closed 3 months ago
Hi @slin-auradine, thanks for asking the question. The global IP address is unrelated. This error could be caused due to lack of your signing secret (or using an invalid one). Please double-check if you're passing SLACK_SIGNING_SECRET env variable to the container. You can check this example for more details: https://github.com/slackapi/bolt-python/blob/main/examples/docker/fastapi-gunicorn/Dockerfile
@seratch Thanks a lot for the quick response! I hardcoded SIGNING_SECRET in the code. It works now. Somehow, the environment variables are passed with a double quote around.
I have a small bot code (just copying from the sample) which runs ok locally. But, not working after I packaged into a container. It gave me an error of
I noticed "192.168.65.1". Is the bot checking the source IP?
Reproducible in:
The
slack_bolt
versionslack-bolt==1.18.1 slack_sdk==3.27.1
Python runtime version
Python 3.12.1
OS info
ProductName: macOS ProductVersion: 13.4 BuildVersion: 22F66 Darwin Kernel Version 22.5.0: Mon Apr 24 20:53:19 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6020
Steps to reproduce:
(Share the commands to run, source code, and project settings (e.g., setup.py))
Expected result:
The application can handle "POST /slack/events"
Actual result: