Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to post back messages to a channel #232

Open
jeffbilder opened this issue Sep 30, 2022 · 0 comments
Open

Unable to post back messages to a channel #232

jeffbilder opened this issue Sep 30, 2022 · 0 comments

Comments

@jeffbilder
Copy link

jeffbilder commented Sep 30, 2022

When attempting to send return data back to a slack channel, the following error is issued:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/slackbot/dispatcher.py", line 55, in _dispatch_msg_handler
    func(Message(self._client, msg), *args)
  File "/home/slackbot/cranebot/cranebot/khasbaht/plugins/saltorch.py", line 23, in salt
    cmd_runner(cmd, message, user)
  File "/home/slackbot/cranebot/cranebot/khasbaht/helpers.py", line 696, in cmd_runner
    stdout=results.stdout, stderr=results.stderr)
  File "/home/slackbot/cranebot/cranebot/khasbaht/helpers.py", line 738, in format_response
    return check_response(message, response), default_username
  File "/home/slackbot/cranebot/cranebot/khasbaht/helpers.py", line 710, in check_response
    message.channel.upload_file(fname, tmpf)
  File "/usr/local/lib/python3.6/site-packages/slackbot/dispatcher.py", line 299, in channel
    return self._client.get_channel(self._body['channel'])
  File "/usr/local/lib/python3.6/site-packages/slackbot/slackclient.py", line 174, in get_channel
    return Channel(self, self.channels[channel_id])
  KeyError: 'xxxxxxx'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant