Skip to content

Commit 4cc9799

Browse files
committed
fix(slack): conversations.info non-retryable if channel not found
1 parent 1e877af commit 4cc9799

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/api/slack/conversations.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ func (a *API) ConversationsInfoActivity(ctx context.Context, req slack.Conversat
111111
return nil, err
112112
}
113113

114+
if resp.Error == "channel_not_found" {
115+
return nil, temporal.NewNonRetryableApplicationError(resp.Error, "SlackAPIError", nil, req, resp)
116+
}
114117
if !resp.OK {
115118
return nil, errors.New("Slack API error: " + resp.Error)
116119
}

0 commit comments

Comments
 (0)