errbotio / errbot

Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation.
http://errbot.io
GNU General Public License v3.0
3.08k stars 607 forks source link

Getting a KeyError: 'team_id' #1664

Closed jpamintuan closed 6 months ago

jpamintuan commented 8 months ago

Describe the bug Our errbot for slack was working for almost 2 years but stopped working yesterday (10/24/2023). I went to the errbot.log file and found this error KeyError: 'team_id'

Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/errbot/backends/base.py", line 868, in serve_forever if self.serve_once(): File "/usr/local/lib/python3.9/dist-packages/errbot/backends/err-backend-slackv3/slackv3.py", line 273, in serve_once self.bot_identifier = SlackPerson(self.slack_web, self.auth["user_id"]) File "/usr/local/lib/python3.9/dist-packages/errbot/backends/err-backend-slackv3/_slack/person.py", line 50, in __init__ self._cache_user_info() File "/usr/local/lib/python3.9/dist-packages/errbot/backends/err-backend-slackv3/_slack/person.py", line 98, in _cache_user_info team_res = self._webclient.team_info(team=res["user"]["team_id"]) KeyError: 'team_id' 12:39:44 INFO errbot.backends.base Reconnecting in 8 seconds (2 attempted reconnections so far).

To Reproduce To reproduce, I went to CLI and typed "errbot", this should start errbot instance

Expected behavior Expected behaviors should be no errors after running "errbot"

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

nzlosh commented 8 months ago

Does using the latest version of the slackv3 plugin resolve the issue? It looks like you've encountered the issue mentioned here https://github.com/errbotio/err-backend-slackv3/issues/96

jpamintuan commented 8 months ago

Yes it did! thanks