Skip to content

Handling Rate Limiting With v2 Commands #436

@CyTheGuy

Description

@CyTheGuy

Description

What is the best way to handle web API rate limiting with the new v2 client? The docs https://slack.dev/python-slackclient/basic_usage.html [slack.dev] don't seem to work anymore and the release notes and migration notes didn't suggest anything. I now get this error when hitting rate limiting but there appears no way to handle it like before since the response is never returned to me it is just output as an error.

slack.errors.SlackApiError: The request to the Slack API failed.
The server responded with: {'ok': False, 'error': 'ratelimited'}

What type of issue is this? (place an x in one of the [ ])

  • question
  • documentation related

Requirements (place an x in each of the [ ])

  • [X ] I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • [X ] I've read and agree to the Code of Conduct.
  • [X ] I've searched for any related issues and avoided creating a duplicate issue.

Reproducible in:

slackclient version: v2

python version: Python 3.7.3

OS version(s): Mac
Logs, screenshots, screencast, sample project, funny gif, etc.

Metadata

Metadata

Assignees

Labels

Version: 2xbugM-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documentedenhancementM-T: A feature request for new functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions