We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcf3176 commit 3e103b4Copy full SHA for 3e103b4
1 file changed
apps/sim/connectors/gitlab/gitlab.ts
@@ -757,15 +757,13 @@ export const gitlabConnector: ConnectorConfig = {
757
})
758
759
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
- )
+ if (response.status === 404 || response.status === 403) {
+ logger.warn('GitLab repository tree unavailable; skipping files', {
+ host,
+ project: encodedProject,
+ ref,
+ status: response.status,
+ })
769
const adv = advance('repo')
770
return { documents: [], nextCursor: adv.nextCursor, hasMore: adv.hasMore }
771
}
0 commit comments