slack-ruby / slack-ruby/slack-ruby-client

Set X-Slack-No-Retry header during Slack timeout

Open
#275 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

new feature
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.