slack-ruby-bot icon indicating copy to clipboard operation
slack-ruby-bot copied to clipboard

Repeated 429 (ratelimited) errors from slack

Open eukim0704 opened this issue 2 years ago • 1 comments

Hi, recently there has been repeated 429 (ratelimited) errors from slack when calling conversations.list api endpoint. Slack support has suggested adding pagination to our calls but I don't see any options in the bot.

We were leaning towards using the https://github.com/slack-ruby/slack-ruby-bot-server gem and/or the related https://github.com/slack-ruby/slack-ruby-bot-server-events gem to resolve the issue but our bot was never listed, so maybe there's a way to resolve this without changing the gem? Any help would be appreciated on the issue.

eukim0704 avatar Mar 17 '23 16:03 eukim0704

What's the call stack that causes the rate limit?

The library that calls conversations.list is https://github.com/slack-ruby/slack-ruby-client. That supports pagination. https://github.com/slack-ruby/slack-ruby-client/blob/master/lib/slack/web/api/endpoints/conversations.rb#L242

dblock avatar Mar 17 '23 17:03 dblock