iachat/lib/integrations/slack
Sojan Jose c7193c7917
fix(slack): handle archived channel errors in SendOnSlackJob (#13520)
When a Slack-integrated channel is archived, posting from Chatwoot
raises `Slack::Web::Api::Errors::IsArchived` in `SendOnSlackJob`, which
retries and can end up in dead jobs. This can be reproduced by archiving
the connected Slack channel for a valid hook and creating outgoing
messages. This change adds `IsArchived` to the existing handled Slack
API rescue path in
`Integrations::Slack::SendOnSlackService#send_message`, so
archived-channel failures now follow the same flow as related Slack
failures (`prompt_reauthorization!` + `disable`) instead of bubbling and
retrying repeatedly. I tested this by running `bundle exec rubocop
lib/integrations/slack/send_on_slack_service.rb` (with `rbenv`
initialized), and it passes with no offenses.

Sentry issue: https://chatwoot-p3.sentry.io/issues/7150427066/
2026-02-11 17:05:44 -08:00
..
channel_builder.rb fix: Optimize Slack channel fetching to avoid rate limiting issues (#12542) 2025-09-29 14:41:48 +05:30
hook_builder.rb feat: move Slack config to installation settings (#11548) 2025-05-23 01:07:35 -07:00
incoming_message_builder.rb chore: Handle duplicate Webhooks from slack (#9187) 2024-04-04 17:00:45 +05:30
link_unfurl_formatter.rb feat: Slack link unfurling (#7940) 2023-09-29 19:35:56 +05:30
send_on_slack_service.rb fix(slack): handle archived channel errors in SendOnSlackJob (#13520) 2026-02-11 17:05:44 -08:00
slack_link_unfurl_service.rb feat: Slack link unfurling (#7940) 2023-09-29 19:35:56 +05:30
slack_message_helper.rb fix: Handle video file types in Slack file shares (#12630) 2025-10-09 21:05:53 +05:30