{"record":{"id":"202a9b9004a316fb","repo":"coleam00/Archon","slug":"gitlabadapter-requires-a-non-empty-webhooksecret","errorCode":null,"errorMessage":"GitLabAdapter requires a non-empty webhookSecret","messagePattern":"GitLabAdapter requires a non-empty webhookSecret","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/adapters/src/community/forge/gitlab/adapter.ts","lineNumber":74,"sourceCode":"  private readonly gitlabUrl: string;\n  private readonly token: string;\n  private readonly webhookSecret: string;\n  private readonly allowedUsers: string[];\n  private readonly botMention: string;\n  private readonly lockManager: ConversationLocker;\n\n  constructor(\n    token: string,\n    webhookSecret: string,\n    lockManager: ConversationLocker,\n    gitlabUrl?: string,\n    botMention?: string\n  ) {\n    if (!token) {\n      throw new Error('GitLabAdapter requires a non-empty token');\n    }\n    if (!webhookSecret) {\n      throw new Error('GitLabAdapter requires a non-empty webhookSecret');\n    }\n\n    this.gitlabUrl = (gitlabUrl ?? 'https://gitlab.com').replace(/\\/+$/, '');\n    this.token = token;\n    this.webhookSecret = webhookSecret;\n    this.lockManager = lockManager;\n    this.botMention = botMention ?? 'Archon';\n\n    this.allowedUsers = parseAllowedUsers(process.env.GITLAB_ALLOWED_USERS);\n    if (this.allowedUsers.length > 0) {\n      getLog().info({ userCount: this.allowedUsers.length }, 'gitlab.whitelist_enabled');\n    } else {\n      getLog().info('gitlab.whitelist_disabled');\n    }\n\n    getLog().info(\n      { botMention: this.botMention, gitlabUrl: this.gitlabUrl },\n      'gitlab.adapter_initialized'","sourceCodeStart":56,"sourceCodeEnd":92,"githubUrl":"https://github.com/coleam00/Archon/blob/0773b9745896ef0612e709c80845a0f7db315b19/packages/adapters/src/community/forge/gitlab/adapter.ts#L56-L92","documentation":"Error \"GitLabAdapter requires a non-empty webhookSecret\" thrown in coleam00/Archon.","triggerScenarios":"Thrown at packages/adapters/src/community/forge/gitlab/adapter.ts:74 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"}