slack-ruby / slack-ruby/slack-ruby-client
Set X-Slack-No-Retry header during Slack timeout
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 1.3k
- Forks
- 222
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 3
Description
When using the webclient through AWS API gateway, there are often delays which cause slack to return "X-Slack-Retry-Reason"=>"http_timeout" even though the POST has been made successfully (the bot writes to slack).
Is there a way to set the X-Slack-No-Retry: 1 on the webclient config in order to prevent the bot attempting the same call multiple times even though successful?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the Ruby webclient builds and sends Slack Web API requests, then inspect where its configuration and timeout handling are defined. Confirm whether the X-Slack-No-Retry: 1 header can be configured and verify that the resulting request prevents retries after an HTTP timeout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100