{"record":{"id":"6b52b3af2c1d6f49","repo":"gatsbyjs/gatsby","slug":"112002","errorCode":"112002","errorMessage":"${errorContext ? `${errorContext}` : ``}\\n\\nThe supplied url ${bold(urlWithoutTrailingSlash)} is invalid,\\nhowever ${bold(urlWithoutTrailingSlash + `/graphql`)} works!\\n\\nFor this plugin to consume the wp-graphql schema, you'll need to specify the full URL\\n(${bold(urlWithoutTrailingSlash + `/graphql`)}) in your gatsby-config.","messagePattern":"(.+?)` : ``\\}\\\\n\\\\nThe supplied url (.+?) is invalid,\\\\nhowever (.+?) works!\\\\n\\\\nFor this plugin to consume the wp-graphql schema, you'll need to specify the full URL\\\\n\\((.+?)\\) in your gatsby-config\\.","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-source-wordpress/src/utils/fetch-graphql.ts","lineNumber":515,"sourceCode":"\n    try {\n      const urlWithoutTrailingSlash = url.replace(/\\/$/, ``)\n\n      const response: AxiosResponse = await moduleHelpers\n        .getHttp(limit)\n        .post(\n          `${urlWithoutTrailingSlash}/graphql`,\n          { query, variables },\n          requestOptions\n        )\n\n      const contentType = response?.headers[`content-type`]\n\n      if (contentType?.includes(`application/json;`)) {\n        const docsLink = `https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-wordpress/docs/plugin-options.md#url-string`\n\n        // if adding `/graphql` works, panic with a useful message\n        reporter.panic({\n          id: CODES.MissingAppendedPath,\n          context: {\n            sourceMessage: formatLogMessage(\n              `${\n                errorContext ? `${errorContext}` : ``\n              }\\n\\nThe supplied url ${bold(\n                urlWithoutTrailingSlash\n              )} is invalid,\\nhowever ${bold(\n                urlWithoutTrailingSlash + `/graphql`\n              )} works!\\n\\nFor this plugin to consume the wp-graphql schema, you'll need to specify the full URL\\n(${bold(\n                urlWithoutTrailingSlash + `/graphql`\n              )}) in your gatsby-config.\\n\\nYou can learn more about configuring the source plugin URL here:\\n${docsLink}\\n\\n`\n            ),\n          },\n        })\n\n        return\n      }","sourceCodeStart":497,"sourceCodeEnd":533,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/8b06340921ffdf23125a365b9c9923690cb62ce6/packages/gatsby-source-wordpress/src/utils/fetch-graphql.ts#L497-L533","documentation":"Error \"${errorContext ? `${errorContext}` : ``}\\n\\nThe supplied url ${bold(urlWithoutTrailingSlash)} is invalid,\\nhowever ${bold(urlWithoutTrailingSlash + `/graphql`)} works!\\n\\nFor this plugin to consume the wp-graphql schema, you'll need to specify the full URL\\n(${bold(urlWithoutTrailingSlash + `/graphql`)}) in your gatsby-config.\" thrown in gatsbyjs/gatsby.","triggerScenarios":"Thrown at packages/gatsby-source-wordpress/src/utils/fetch-graphql.ts:515 when the library encounters an invalid state.","commonSituations":"Occurs when the configured WordPress URL lacks the /graphql endpoint path. Set the url option in gatsby-config.js to the full WPGraphQL endpoint, e.g. https://example.com/graphql.","solutions":["Update the url option in gatsby-config.js to the full WPGraphQL endpoint including /graphql (the logged working URL)."],"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"}