{"record":{"id":"67f00e55054d996a","repo":"badges/shields","slug":"not-found-67f00e","errorCode":null,"errorMessage":"not found","messagePattern":"not found","errorType":"exception","errorClass":"NotFound","httpStatus":404,"severity":"error","filePath":"services/chrome-web-store/chrome-web-store-version.service.js","lineNumber":30,"sourceCode":"    '/chrome-web-store/v/{storeId}': {\n      get: {\n        summary: 'Chrome Web Store Version',\n        description,\n        parameters: pathParams({\n          name: 'storeId',\n          example: 'ogffaloegjglncjfehdfplabnoondfjo',\n        }),\n      },\n    },\n  }\n\n  static defaultBadgeData = { label: 'chrome web store' }\n\n  async handle({ storeId }) {\n    const chromeWebStore = await this.fetch({ storeId })\n    const version = chromeWebStore.version()\n    if (version == null) {\n      throw new NotFound({ prettyMessage: 'not found' })\n    }\n    return renderVersionBadge({ version })\n  }\n}\n","sourceCodeStart":12,"sourceCodeEnd":35,"githubUrl":"https://github.com/badges/shields/blob/766fd8bc89a90b8534dc573ab72dec30215ab1ec/services/chrome-web-store/chrome-web-store-version.service.js#L12-L35","documentation":"The Chrome Web Store version badge throws NotFound with 'not found' when the scraped extension page exposes no version string (chromeWebStore.version() is null). This signals the extension could not be resolved on the Chrome Web Store.","triggerScenarios":"Requesting a chrome-web-store version badge with a storeId for an extension that does not exist, was unpublished, or whose page scrape returns no version field.","commonSituations":"Wrong storeId, extension removed from the store, unlisted extensions, or Chrome Web Store HTML changes that make the version unparseable.","solutions":["Confirm the storeId resolves to a live extension page on the Chrome Web Store with a visible version","Retry later in case of transient upstream or scraping issues","Check the storeId for typos (it is a 32-char lowercase hex string)","Open an issue with the badge service if the extension clearly shows a version but the badge says not found"],"exampleFix":"// before\n/badge/chrome-web-store/v/does-not-exist\n// after\n/badge/chrome-web-store/v/nkemmklpomlogoijgonofhndcffbppgb","handlingStrategy":"validation","validationCode":"const STORE_ID_RE = /^[a-p]{32}$/;\nif (!STORE_ID_RE.test(storeId)) throw new Error(`invalid storeId: ${storeId}`);","typeGuard":"function hasVersion(page) { return page != null && typeof page.version === 'function' && page.version() != null; }","tryCatchPattern":"try {\n  const badge = await fetchBadge(`/chrome-web-store/v/${storeId}`);\n} catch (e) {\n  if (e.status === 404) console.warn(`no version available for ${storeId}`);\n  else throw e;\n}","preventionTips":["Confirm the extension page is live and displays a version before adding the badge","Watch for Chrome Web Store markup changes that break scraping","Use the exact storeId from the extension's URL","Keep a fallback badge or link if the extension gets unpublished"],"tags":["not-found","chrome-web-store","upstream"],"backgroundTag":"resource-not-found","analyzedSha":"766fd8bc89a90b8534dc573ab72dec30215ab1ec","analyzedAt":"2026-08-30T01:40:27.499Z","schemaVersion":2},"datasetVersion":"2026-08-30T03:17:51.788Z"}