coleam00/Archon · error

Repository ${projectPath} not found or is private. Check rep

Error message

Repository ${projectPath} not found or is private. Check repository access.

What it means

Error "Repository ${projectPath} not found or is private. Check repository access." thrown in coleam00/Archon.

Source

Thrown at packages/adapters/src/community/forge/gitlab/adapter.ts:504

      const err = error as Error;
      // Sanitize token from all error properties (message, stack, cause)
      const sanitize = (s: string): string => s.replaceAll(this.token, '***');
      const sanitized = sanitize(err.message);
      const msg = sanitized.toLowerCase();

      const sanitizedError: Record<string, unknown> = { message: sanitized };
      if (err.stack) sanitizedError.stack = sanitize(err.stack);
      if (err.cause && typeof (err.cause as Error).message === 'string') {
        sanitizedError.cause = sanitize((err.cause as Error).message);
      }
      const errRecord = err as unknown as Record<string, unknown>;
      if (typeof errRecord.stdout === 'string') sanitizedError.stdout = sanitize(errRecord.stdout);
      if (typeof errRecord.stderr === 'string') sanitizedError.stderr = sanitize(errRecord.stderr);

      getLog().error({ projectPath, repoPath, error: sanitizedError }, 'gitlab.repo_clone_failed');

      if (msg.includes('not found') || msg.includes('404')) {
        throw new Error(
          `Repository ${projectPath} not found or is private. Check repository access.`
        );
      }
      if (
        msg.includes('authentication failed') ||
        msg.includes('could not read') ||
        msg.includes('403')
      ) {
        throw new Error(
          `Authentication failed for ${projectPath}. Check GITLAB_TOKEN permissions.`
        );
      }
      throw new Error(`Failed to clone ${projectPath}: ${sanitized}`);
    }

    await addSafeDirectory(toRepoPath(repoPath));
  }

View on GitHub (pinned to 0773b97458)

When it happens

Trigger: Thrown at packages/adapters/src/community/forge/gitlab/adapter.ts:504 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of coleam00/Archon@0773b97458 (2026-09-01). Data as JSON: /api/errors/9fa862bc184461f8. Report an issue: GitHub.