{"record":{"id":"78bb6a3f98bfdb3c","repo":"gatsbyjs/gatsby","slug":"111004","errorCode":"111004","errorMessage":"${e.message}\\n\\nThe GraphQL request was forbidden.\\nIf you are using a security plugin like WordFence or a server firewall you may need to add your IP address to the allow list or adjust your firewall settings for your GraphQL endpoint.\\n\\n${errorContext}","messagePattern":"(.+?)\\\\n\\\\nThe GraphQL request was forbidden\\.\\\\nIf you are using a security plugin like WordFence or a server firewall you may need to add your IP address to the allow list or adjust your firewall settings for your GraphQL endpoint\\.\\\\n\\\\n(.+?)","errorType":"panic","errorClass":null,"httpStatus":403,"severity":"error","filePath":"packages/gatsby-source-wordpress/src/utils/fetch-graphql.ts","lineNumber":451,"sourceCode":"                username: process.env.HTTPBASICAUTH_USERNAME,\n                password: process.env.HTTPBASICAUTH_PASSWORD,\n              }\n            }\n          }\n        }\n         \\n${genericError({ url })}`,\n          { useVerboseStyle: true }\n        ),\n      },\n    })\n\n    return\n  }\n\n  const forbidden = e.message.includes(`Request failed with status code 403`)\n\n  if (forbidden) {\n    reporter.panic({\n      id: CODES.RequestDenied,\n      context: {\n        sourceMessage: formatLogMessage(\n          `${e.message}\\n\\nThe GraphQL request was forbidden.\\nIf you are using a security plugin like WordFence or a server firewall you may need to add your IP address to the allow list or adjust your firewall settings for your GraphQL endpoint.\\n\\n${errorContext}`\n        ),\n      },\n    })\n\n    return\n  }\n\n  const redirected = e.message.includes(`GraphQL request was redirected`)\n\n  if (redirected) {\n    await handleErrorOptions({ variables, query, pluginOptions, reporter })\n    reporter.panic({\n      id: CODES.WordPressFilters,\n      context: {","sourceCodeStart":433,"sourceCodeEnd":469,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/8b06340921ffdf23125a365b9c9923690cb62ce6/packages/gatsby-source-wordpress/src/utils/fetch-graphql.ts#L433-L469","documentation":"Error \"${e.message}\\n\\nThe GraphQL request was forbidden.\\nIf you are using a security plugin like WordFence or a server firewall you may need to add your IP address to the allow list or adjust your firewall settings for your GraphQL endpoint.\\n\\n${errorContext}\" thrown in gatsbyjs/gatsby.","triggerScenarios":"Thrown at packages/gatsby-source-wordpress/src/utils/fetch-graphql.ts:451 when the library encounters an invalid state.","commonSituations":"Occurs when the GraphQL request is forbidden (403), often due to WordFence or a server firewall. Add the build server's IP to the allow list or adjust firewall rules for the GraphQL endpoint.","solutions":["Add your build server's IP address to the allow list of WordFence or your server firewall for the GraphQL endpoint.","Adjust firewall rules so POST requests to the WPGraphQL endpoint are permitted."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8b06340921ffdf23125a365b9c9923690cb62ce6","analyzedAt":"2026-08-13T02:36:21.405Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}