-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Infinity error when app disabled #76
Comments
Indeed, this is a bug (or non-feature). In slack-bot-server I patched restart to go through https://github.com/dblock/slack-bot-server/blob/aed0283a97aaf4c6e9a331099c678288708860ae/slack-bot-server/service.rb#L43 which would disable the service. I'd like something here that addresses this problem and maybe invokes a callback like "disabled". |
Thanks! I tried to change this current restart method, and it works. |
I think that would be a sensible change @SlayerShadow, feel free to PR. |
Thanks. This is my first pull request, so sorry if something went wrong. :) |
When any team disables/removes application after releasing a bot, it produces
Slack::Web::Api::Error
withaccount_inactive
message on logs. After that, server tries to reconnect, which produces the same error, and it is endless.I found at
/lib/slack-ruby-bot/server.rb:94
potential problem which in fact infinitely restart server without the checking of incoming error type.The text was updated successfully, but these errors were encountered: