2

获取图像时返回

Fetching image_url is taking a long time time (longer than 15 seconds). This file is File_size MB``` After few of this line it crashes with ```error RequestError: Timeout awaiting 'request' for 30000ms. 

如何增加这个 15 秒的超时限制?

4

2 回答 2

0

我遇到了同样的问题,它在从 Node v10 升级到 v14 并运行后得到了修复npm rebuild

于 2021-02-05T15:41:32.173 回答
0

我建议使用内置选项

{
  resolve: `gatsby-source-wordpress-experimental`,
  options: {
    schema: {
      requestConcurrency: 50,
    },
  },
},

或者,您可以将开发运行命令更改为,在您的package.json

"develop": "GATSBY_CONCURRENT_DOWNLOAD=5 gatsby develop",
于 2020-12-10T06:17:05.067 回答