'ERROR #gatsby-source-wordpress_111002 & Error: Request failed with status code 429

my gatsby project suddenly stopped working after this error as it was working fine previously

ERROR #gatsby-source-wordpress_111002

gatsby-source-wordpress Error: Request failed with status code 429 at createError (D:\Projects\Project1\oclouds\node_modules\gatsby-source-wordpress\node_modules\axios\lib\core\createError.js:16:15) at settle (D:\Projects\Project1\oclouds\node_modules\gatsby-source-wordpress\node_modules\axios\lib\core\settle.js:17:12) at IncomingMessage.handleStreamEnd (D:\Projects\Project1\oclouds\node_modules\gatsby-source-wordpress\node_modules\axios\lib\adapters\http.js:269:11) at IncomingMessage.emit (events.js:412:35) at endReadableNT (internal/streams/readable.js:1317:12) at processTicksAndRejections (internal/process/task_queues.js:82:21)

Error occurred while fetching nodes of the "Post" type.`

i have tried all solution found online including decreasing the number in schema.requestConcurrency

here is my plugin code in gatsby-config.js

{
  resolve: `gatsby-source-wordpress`,
  options: {
    url: process.env.WPGRAPHQL_URL,
  },
  schema: {
    timeout: 1000000,
    perPage: 10,
    requestConcurrency: 5,
  },
},


Solution 1:[1]

i have tried all solution found online including decreasing the number in schema.requestConcurrency

Your schema object is not properly set. You should do something like:

{
  resolve: `gatsby-source-wordpress`,
  options: {
    url: process.env.WPGRAPHQL_URL,
    schema: {
      timeout: 1000000,
      perPage: 10,
      requestConcurrency: 5,
    },
  },
}

schema is a property from options, as you can see in the docs.

I'm not sure if this will fix your issue since there are not many details but this certainly will fix your trial.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ferran Buireu