{"record":{"id":"4c78c29b12d21b8c","repo":"coleam00/Archon","slug":"gitlab-api-method-path-string-response-st","errorCode":null,"errorMessage":"GitLab API ${method} ${path}: ${String(response.status)} ${response.statusText} - ${text}","messagePattern":"GitLab API (.+?) (.+?): (.+?) (.+?) - (.+?)","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/adapters/src/community/forge/gitlab/adapter.ts","lineNumber":175,"sourceCode":"  }\n\n  // ---------------------------------------------------------------------------\n  // GitLab REST API helper\n  // ---------------------------------------------------------------------------\n\n  private async gitlabApi<T>(method: string, path: string, body?: unknown): Promise<T> {\n    const url = `${this.gitlabUrl}/api/v4${path}`;\n    const response = await fetch(url, {\n      method,\n      headers: {\n        'PRIVATE-TOKEN': this.token,\n        'Content-Type': 'application/json',\n      },\n      body: body ? JSON.stringify(body) : undefined,\n    });\n    if (!response.ok) {\n      const text = await response.text();\n      throw new Error(\n        `GitLab API ${method} ${path}: ${String(response.status)} ${response.statusText} - ${text}`\n      );\n    }\n    return response.json() as Promise<T>;\n  }\n\n  // ---------------------------------------------------------------------------\n  // Comment posting with retry\n  // ---------------------------------------------------------------------------\n\n  private isRetryableError(error: unknown): boolean {\n    const err = error as Error | undefined;\n    const message = err?.message ?? '';\n    const causeErr = (error as { cause?: Error }).cause;\n    const cause = causeErr?.message ?? '';\n    const combined = `${message} ${cause}`.toLowerCase();\n\n    return (","sourceCodeStart":157,"sourceCodeEnd":193,"githubUrl":"https://github.com/coleam00/Archon/blob/0773b9745896ef0612e709c80845a0f7db315b19/packages/adapters/src/community/forge/gitlab/adapter.ts#L157-L193","documentation":"Error \"GitLab API ${method} ${path}: ${String(response.status)} ${response.statusText} - ${text}\" thrown in coleam00/Archon.","triggerScenarios":"Thrown at packages/adapters/src/community/forge/gitlab/adapter.ts:175 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"}