您的 WordPress 服务器似乎超载。 [盖茨比]

问题描述 投票:0回答:1

我在尝试致电

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.

我尝试按照建议设置requestConcurrency:5和previewRequestConcurrency:2,但这还不够。

我在出现错误之前所做的事情可能与此相关:

  • 我今天更新了
    WPGraphQL
    插件(v1.1.1)(我尝试降级到v1.1.0但问题仍然存在)
  • 我将
    useGatsbyImage
    (在 gatsby-config.js 中的“gatsby-source-wordpress-experimental”选项中)设置为 false 来进行一些测试。

Wordpress 上使用的插件有:

WP Gatsby (v0.9.1)
WP GraphQL (v1.1.0)
WP GraphQL Gutenberg (v0.3.5)

我正在运行本地 WordPress 服务器(通过 Local),它似乎工作正常。

感谢任何帮助!

wordpress gatsby gatsby-image wp-graphql
1个回答
0
投票

[已解决]:我禁用了 WP GraphQL Gutenberg (v0.3.5),它再次开始工作。看起来这个插件可能会使 WordPress 服务器超载。这可能是

WP GraphQL (v1.1.0)
和 WP
GraphQL Gutenberg (v0.3.5)
之间不兼容。有关此不兼容性的更多信息此处

© www.soinside.com 2019 - 2024. All rights reserved.