{"record":{"id":"f58463ff7416584c","repo":"gatsbyjs/gatsby","slug":"gatsby-s-redux-store-is-required-in-the-addremote","errorCode":null,"errorMessage":"Gatsby's redux store is required in the \"addRemoteFilePolyfillInterface\" and \"polyfillImageServiceDevRoutes\" API's for image CDN. No store was found when requesting url \"${passedUrl}\". This will fail your build in Gatsby V5. Upgrade your source plugins and Gatsby packages to the latest versions to resolve this. If you are a source plugin author visit https://gatsby.dev/source-plugins-image-cdn to learn how to make this warning go away.","messagePattern":"Gatsby's redux store is required in the \"addRemoteFilePolyfillInterface\" and \"polyfillImageServiceDevRoutes\" API's for image CDN\\. No store was found when requesting url \"(.+?)\"\\. This will fail your build in Gatsby V5\\. Upgrade your source plugins and Gatsby packages to the latest versions to resolve this\\. If you are a source plugin author visit https://gatsby\\.dev/source-plugins-image-cdn to learn how to make this warning go away\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-plugin-utils/src/polyfill-remote-file/utils/get-request-headers-for-url.ts","lineNumber":16,"sourceCode":"import url from \"url\"\n\nimport type { Headers } from \"got\"\nimport type { Store } from \"gatsby\"\n\nlet loggedWarning = false\n\nexport function getRequestHeadersForUrl(\n  passedUrl: string,\n  store?: Store\n): Headers | undefined {\n  const storeIsMissing = !store || !(`getState` in store)\n\n  if (storeIsMissing && !loggedWarning) {\n    loggedWarning = true\n    console.warn(\n      `Gatsby's redux store is required in the \"addRemoteFilePolyfillInterface\" and \"polyfillImageServiceDevRoutes\" API's for image CDN. No store was found when requesting url \"${passedUrl}\". This will fail your build in Gatsby V5. Upgrade your source plugins and Gatsby packages to the latest versions to resolve this. If you are a source plugin author visit https://gatsby.dev/source-plugins-image-cdn to learn how to make this warning go away.`\n    )\n  }\n\n  if (storeIsMissing) {\n    return undefined\n  }\n\n  const baseDomain = url.parse(passedUrl).hostname\n  const { requestHeaders } = store.getState()\n\n  return baseDomain ? requestHeaders?.get(baseDomain) : undefined\n}\n","sourceCodeStart":1,"sourceCodeEnd":30,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-plugin-utils/src/polyfill-remote-file/utils/get-request-headers-for-url.ts#L1-L30","documentation":"Error \"Gatsby's redux store is required in the \"addRemoteFilePolyfillInterface\" and \"polyfillImageServiceDevRoutes\" API's for image CDN. No store was found when requesting url \"${passedUrl}\". This will fail your build in Gatsby V5. Upgrade your source plugins and Gatsby packages to the latest versions to resolve this. If you are a source plugin author visit https://gatsby.dev/source-plugins-image-cdn to learn how to make this warning go away.\" thrown in gatsbyjs/gatsby.","triggerScenarios":"Thrown at packages/gatsby-plugin-utils/src/polyfill-remote-file/utils/get-request-headers-for-url.ts:16 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Upgrade Gatsby and all source plugins to the latest versions","Source plugin authors: pass the store when calling addRemoteFilePolyfillInterface/polyfillImageServiceDevRoutes (https://gatsby.dev/source-plugins-image-cdn)"],"exampleFix":null,"handlingStrategy":"validation","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-14T00:17:10.932Z"}