@asifaziz01 what version of WordPress, PHP and WPGatsby are you using?
I believe this issue was resolved with this Pull Request: https://github.com/gatsbyjs/wp-gatsby/pull/55 and released as v0.6.1 on November 19.
I ugraded a few weeks ago and have been unable to build since then. I’ve upgraded all my Gatsby and WordPress related plugins but I keep getting the 404 error below.
success open and validate gatsby-configs – 0.052s
success load plugins – 1.774s
success onPreInit – 0.039s
success initialize cache – 0.015s
success copy gatsby files – 0.069s
success onPreBootstrap – 0.027s
error gatsby-source-wordpress Request failed with status code 404
GraphQL request to https://wp-icrco.com/graphql failed.
Please ensure the following statements are true
– your WordPress URL is correct in gatsby-config.js
– your server is responding to requests
– WPGraphQL and WPGatsby are installed in your WordPress backend
not finished createSchemaCustomization – 0.195s
not finished gatsby-source-wordpress ensuring plugin requiremenst are met – 0.189s
@lhtorres2015 I can’t visit your GraphQL api in a browser either. Can you confirm that is the correct URL to your GraphQL endpoint?
@lhtorres2015 it looks like it might be a permalink issue.
I can see your GraphQL endpoint here: https://wp-icrco.com/?graphql