StackStorm / st2chatops

Packaging environment for building StackStorm chatops native packages
Apache License 2.0
32 stars 41 forks source link

Chatops hubot slack adapter can't connect. #172

Closed amanda11 closed 2 years ago

amanda11 commented 2 years ago

Discussed in https://github.com/StackStorm/st2/discussions/5501

Originally posted by **gableb** December 13, 2021 st2 version: st2 3.6.0, on Python 3.8.10 OS version: Ubuntu 20.04 Python version: Python 3.8.10 Journalctl output upon startup: https://gist.github.com/gableb/da31c3d97d2b9795ae21259676759a42 When starting the st2chatops service, the following logs appear. The hubot slack adapter does not connect to our slack instance.
amanda11 commented 2 years ago

Confirmed that this problem occurs when you add a new Hubot instance to a Slack workspace.

To workaround the problem, add following to /opt/stackstorm/chatops/st2chatops.env: export HUBOT_SLACK_RTM_CLIENT_OPTS='{"useRtmConnect": "true"}'

I will create a PR with change for next release.