{"record":{"id":"9fa862bc184461f8","repo":"coleam00/Archon","slug":"repository-projectpath-not-found-or-is-private","errorCode":null,"errorMessage":"Repository ${projectPath} not found or is private. Check repository access.","messagePattern":"Repository (.+?) not found or is private\\. Check repository access\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/adapters/src/community/forge/gitlab/adapter.ts","lineNumber":504,"sourceCode":"      const err = error as Error;\n      // Sanitize token from all error properties (message, stack, cause)\n      const sanitize = (s: string): string => s.replaceAll(this.token, '***');\n      const sanitized = sanitize(err.message);\n      const msg = sanitized.toLowerCase();\n\n      const sanitizedError: Record<string, unknown> = { message: sanitized };\n      if (err.stack) sanitizedError.stack = sanitize(err.stack);\n      if (err.cause && typeof (err.cause as Error).message === 'string') {\n        sanitizedError.cause = sanitize((err.cause as Error).message);\n      }\n      const errRecord = err as unknown as Record<string, unknown>;\n      if (typeof errRecord.stdout === 'string') sanitizedError.stdout = sanitize(errRecord.stdout);\n      if (typeof errRecord.stderr === 'string') sanitizedError.stderr = sanitize(errRecord.stderr);\n\n      getLog().error({ projectPath, repoPath, error: sanitizedError }, 'gitlab.repo_clone_failed');\n\n      if (msg.includes('not found') || msg.includes('404')) {\n        throw new Error(\n          `Repository ${projectPath} not found or is private. Check repository access.`\n        );\n      }\n      if (\n        msg.includes('authentication failed') ||\n        msg.includes('could not read') ||\n        msg.includes('403')\n      ) {\n        throw new Error(\n          `Authentication failed for ${projectPath}. Check GITLAB_TOKEN permissions.`\n        );\n      }\n      throw new Error(`Failed to clone ${projectPath}: ${sanitized}`);\n    }\n\n    await addSafeDirectory(toRepoPath(repoPath));\n  }\n","sourceCodeStart":486,"sourceCodeEnd":522,"githubUrl":"https://github.com/coleam00/Archon/blob/0773b9745896ef0612e709c80845a0f7db315b19/packages/adapters/src/community/forge/gitlab/adapter.ts#L486-L522","documentation":"Error \"Repository ${projectPath} not found or is private. Check repository access.\" thrown in coleam00/Archon.","triggerScenarios":"Thrown at packages/adapters/src/community/forge/gitlab/adapter.ts:504 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0773b9745896ef0612e709c80845a0f7db315b19","analyzedAt":"2026-09-01T02:28:07.064Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T05:18:18.240Z"}