Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.7k views
in Technique[技术] by (71.8m points)

gatsby - Your wordpress server appears to be overloaded. [SOLVED]

I'm getting the error below when trying to call gatsby develop.

 ERROR #gatsby-source-wordpress-experimental_111007 

 gatsby-source-wordpress  Your wordpress server at http://localwp/graphql appears to be overloaded.

Try reducing the requestConcurrency for content updates or the previewRequestConcurrency for previews:

{
  resolve: 'gatsby-source-wordpress-experimental',
  options: {
    schema: {
      requestConcurrency: 5, // currently set to 5
      previewRequestConcurrency: 2, // currently set to 2
    }
  },
}

The GATSBY_CONCURRENT_REQUEST environment variable is no longer used to control concurrency.
If you were previously using that, you'll need to use the settings above instead.

I tried to set requestConcurrency: 5 and previewRequestConcurrency: 2 as suggested but it was not enough.

Things I did before getting error appeared that may be related:

  • I updated the WPGraphQL plugin (v1.1.1) today (I tried to downgrade to v1.1.0 but the problem persists)
  • I set useGatsbyImage (within the 'gatsby-source-wordpress-experimental' options in gatsby-config.js) to false to do some tests.

Plugins used on Wordpress are: WP Gatsby (v0.9.1), WP GraphQL (v1.1.0), WP GraphQL Gutenberg (v0.3.5).

I'm running a local wordpress server (via Local) and it seems to be working normally.

[SOLVED] : I disabled WP GraphQL Gutenberg (v0.3.5) and it started to work again. Looks like this plugin might be overloading the wordpress server.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

[SOLVED] : I disabled WP GraphQL Gutenberg (v0.3.5) and it started to work again. Looks like this plugin might be overloading the wordpress server. It's probably some incompatibility between WP GraphQL (v1.1.0) and WP GraphQL Gutenberg (v0.3.5). More information about this incompatibility here.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...