{"record":{"id":"1d878ab7bca34276","repo":"gatsbyjs/gatsby","slug":"no-response-or-non-200-code-for-url","errorCode":null,"errorMessage":"No response or non 200 code for ${url}","messagePattern":"No response or non 200 code for (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/gatsby-dev-cli/src/utils/check-deps-changes.js","lineNumber":67,"sourceCode":"      )\n      return {\n        didDepsChanged: false,\n        packageNotInstalled,\n      }\n    }\n\n    // if package is not installed, we will do http GET request to\n    // unkpg to check if dependency in package published in public\n    // npm repository are different\n\n    // this allow us to not publish to local repository\n    // and save some time/work\n    try {\n      const version = getPackageVersion(packageName)\n      const url = `https://unpkg.com/${packageName}@${version}/package.json`\n      const response = await got(url)\n      if (response?.statusCode !== 200) {\n        throw new Error(`No response or non 200 code for ${url}`)\n      }\n      localPKGjson = JSON.parse(response.body)\n    } catch (e) {\n      console.log(\n        `'${packageName}' doesn't seem to be installed and is not published on NPM. Error: ${e.message}`\n      )\n      return {\n        didDepsChanged: true,\n        packageNotInstalled,\n      }\n    }\n  }\n\n  const monoRepoPackageJsonPath = getMonorepoPackageJsonPath({\n    packageName,\n    packageNameToPath,\n  })\n  const monorepoPKGjsonString = fs.readFileSync(","sourceCodeStart":49,"sourceCodeEnd":85,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-dev-cli/src/utils/check-deps-changes.js#L49-L85","documentation":"check-deps-changes GETs the package.json of the installed dependency version from unpkg.com to compare against the local one; a missing response or non-200 status code throws here. The URL is constructed from packageName@version, so an unpublished/removed version or network failure triggers it.","triggerScenarios":"Thrown at packages/gatsby-dev-cli/src/utils/check-deps-changes.js:67 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the package version exists on npm/unpkg (not unpublished)","Retry when the network or unpkg is temporarily unavailable","Ensure the local package.json version string is valid"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e85d62f1779e353eaac1753211629a26d123e26c","analyzedAt":"2026-08-26T17:50:09.662Z","contentChangedAt":"2026-08-26T17:50:09.662Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}