question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make Slack Channel failure visible

See original GitHub issue

Rasa version: I’m running rasa-core 0.14.2 but I verified the version on master has same code

Python version: 3.7

Operating system (windows, osx, …): Ubuntu

Issue:

Slack client was returning {“ok” False} with error message but not exposing that from rasa_core/channels/slack

https://github.com/RasaHQ/rasa/blob/49bbb8f06daad0bdec05664cc1eb9eaf7e4407da/rasa/core/channels/slack.py#L30

so I like to propose something like this…

    def _api_call(self, metohd, **kwargs):
        result = super(SlackBot, self).api_call(metohd, **kwargs)
        if not result.get("ok", False):
            logger.exception(f"Error {result['error']}\n{kwargs}")

on the side note:Once I got {‘ok’: True} returned, now slack is not posting message although api call to slack shows successful. I’m asking slackclient community but if anyone have idea I’m all ear. Thank you!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
akeladcommented, May 9, 2019

Thanks for raising this issue, @MetcalfeTom will get back to you about it soon.

0reactions
stale[bot]commented, Feb 3, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage channel posting permissions - Slack
From your desktop, open the #general channel. · Click the channel name in the conversation header. · Select the Settings tab. · Next...
Read more >
Troubleshoot connection issues | Slack
Steps to troubleshoot · Open the Slack desktop app, then click Help in your computer's top menu bar. · Select Troubleshooting, then click...
Read more >
Manage approval settings for Slack Connect channels
Manage approval settings · From your desktop, click your workspace name in the top left. · Select Settings & administration from the menu,...
Read more >
Use channel management tools | Slack
Slack's channel management tools allow owners and admins with permission to view a list of channels in their workspace or Enterprise Grid organization...
Read more >
Convert a channel to private | Slack
From your desktop, open the channel you'd like to make private. · Click the channel name in the conversation header. · Select the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found