Skip to content

Commit 3e103b4

Browse files
committed
fix(gitlab): skip repo phase on tree 403 (missing read_repository) so wiki/issues still sync under all
1 parent dcf3176 commit 3e103b4

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

apps/sim/connectors/gitlab/gitlab.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -757,15 +757,13 @@ export const gitlabConnector: ConnectorConfig = {
757757
})
758758

759759
if (!response.ok) {
760-
if (response.status === 404) {
761-
logger.warn(
762-
'GitLab repository tree returned 404; skipping files (empty repo or no tree)',
763-
{
764-
host,
765-
project: encodedProject,
766-
ref,
767-
}
768-
)
760+
if (response.status === 404 || response.status === 403) {
761+
logger.warn('GitLab repository tree unavailable; skipping files', {
762+
host,
763+
project: encodedProject,
764+
ref,
765+
status: response.status,
766+
})
769767
const adv = advance('repo')
770768
return { documents: [], nextCursor: adv.nextCursor, hasMore: adv.hasMore }
771769
}

0 commit comments

Comments
 (0)