{"record":{"id":"807dc79ab8e70e4b","repo":"CanineHQ/canine","slug":"failed-to-fetch-repository-index","errorCode":null,"errorMessage":"Failed to fetch repository index","messagePattern":"Failed to fetch repository index","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"app/javascript/controllers/add_ons/helm_repo_browser_controller.js","lineNumber":73,"sourceCode":"      return\n    }\n\n    this.showLoading()\n    this.hideError()\n\n    try {\n      const response = await fetch('/add_ons/fetch_helm_repository_index', {\n        method: 'POST',\n        headers: {\n          'Content-Type': 'application/json',\n          'X-CSRF-Token': document.querySelector('[name=\"csrf-token\"]').content\n        },\n        body: JSON.stringify({ repo_url: repoUrl })\n      })\n\n      if (!response.ok) {\n        const errorData = await response.json()\n        throw new Error(errorData.error || 'Failed to fetch repository index')\n      }\n\n      const data = await response.json()\n      this.charts = data.charts\n      this.populateChartSelector()\n      this.hideLoading()\n      this.showChartSelector()\n    } catch (error) {\n      this.hideLoading()\n      this.showError(error.message)\n      this.hideChartSelector()\n    }\n  }\n\n  populateChartSelector() {\n    const repoUrl = this.repoUrlTarget.value.trim()\n    const repoAlias = this.getRepoAlias(repoUrl)\n","sourceCodeStart":55,"sourceCodeEnd":91,"githubUrl":"https://github.com/CanineHQ/canine/blob/ba4ee3968d8513ee27d8583fbd3e854a8dd053f3/app/javascript/controllers/add_ons/helm_repo_browser_controller.js#L55-L91","documentation":"Error \"Failed to fetch repository index\" thrown in CanineHQ/canine.","triggerScenarios":"Thrown at app/javascript/controllers/add_ons/helm_repo_browser_controller.js:73 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":"ba4ee3968d8513ee27d8583fbd3e854a8dd053f3","analyzedAt":"2026-08-23T17:49:27.834Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}