From 3bd6b87b8e889b709da24842cc4ca0b2517a5ad7 Mon Sep 17 00:00:00 2001 From: agustin-conductor Date: Wed, 24 Jun 2026 11:22:10 -0300 Subject: [PATCH] return not found on no such subteam --- pkg/connector/client/helpers.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/connector/client/helpers.go b/pkg/connector/client/helpers.go index 3d4b2da2..c2cf3379 100644 --- a/pkg/connector/client/helpers.go +++ b/pkg/connector/client/helpers.go @@ -155,11 +155,9 @@ func MapSlackErrorToGRPCCode(slackError string) codes.Code { return codes.NotFound } - // no_such_subteam is returned when fetching user group members. We determined - // empirically that retrying on this error allows syncs to complete successfully, - // so we map it to Unavailable to trigger the SDK's automatic retry logic. + // no_such_subteam is returned when fetching user group members. return NotFound to indicate the group is disabled or deleted. if containsAny(err, SlackErrNoSuchSubteam) { - return codes.Unavailable + return codes.NotFound } if containsAny(err, "user_already_team_member") {