{"record":{"id":"b266ee60846cac5d","repo":"gatsbyjs/gatsby","slug":"111003","errorCode":"111003","errorMessage":"Fetching contentful data failed: ${createContentfulErrorMessage(e)}","messagePattern":"Fetching contentful data failed: (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-source-contentful/src/fetch.js","lineNumber":323,"sourceCode":"          currentPageLimit = Math.floor((currentPageLimit / 3) * 2) || 1\n          reporter.warn(\n            [\n              `The sync with Contentful failed using pageLimit ${lastCurrentPageLimit} as the reponse size limit of the API is exceeded.`,\n              `Retrying sync with pageLimit of ${currentPageLimit}`,\n            ].join(`\\n\\n`)\n          )\n          continue\n        }\n        throw e\n      }\n      if (currentPageLimit !== pageLimit) {\n        reporter.warn(\n          `We recommend you to set your pageLimit in gatsby-config.js to ${currentPageLimit} to avoid failed synchronizations.`\n        )\n      }\n    }\n  } catch (e) {\n    reporter.panic({\n      id: CODES.SyncError,\n      context: {\n        sourceMessage: `Fetching contentful data failed: ${createContentfulErrorMessage(\n          e\n        )}`,\n      },\n    })\n  } finally {\n    // Fix output when there was no new data in Contentful\n    if (\n      !currentSyncData?.entries.length &&\n      !currentSyncData?.assets.length &&\n      !currentSyncData?.deletedEntries.length &&\n      !currentSyncData?.deletedAssets.length\n    ) {\n      syncProgress.tick()\n      syncProgress.total = 1\n    }","sourceCodeStart":305,"sourceCodeEnd":341,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-source-contentful/src/fetch.js#L305-L341","documentation":"handleContentfulError rethrows a fatal panic after the Contentful SDK's fetch of sync data fails. The message wraps the SDK error plus actionable context: suggests GATSBY_CONTENTFUL_OFFLINE=true to serve from cache and echoes the resolved plugin options used, so credential/endpoint problems can be spotted.","triggerScenarios":"Thrown at packages/gatsby-source-contentful/src/fetch.js:323 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check spaceId, accessToken, environment and host options","Set GATSBY_CONTENTFUL_OFFLINE=true to serve from cache while offline","Fix network/SDK issue shown in createContentfulErrorMessage details"],"exampleFix":null,"handlingStrategy":"fallback","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"}