imranhsayed / gatsby-woocommerce-themes

⚡ A Gatsby Theme for WooCommerce E-commerce site Gatsby WooCommerce WordPress
https://gatsby-woocommerce-theme.netlify.app/
MIT License
606 stars 309 forks source link

build & dev failed with timeout error #40

Open bradjin8 opened 4 years ago

bradjin8 commented 4 years ago

Tried the commands after configuring environment variables. yarn build yarn dev Both of them led me to the same errors as following:

`Error: timeout of 30000ms exceeded

⠇ source and transform nodes ⠇ gatsby-source-wordpress fetching nodes — 0 total ⠇ gatsby-source-wordpress Category ⠇ gatsby-source-wordpress Comment ⠧ gatsby-source-wordpress ContentType ⠧ gatsby-source-wordpress Coupon ⠧ gatsby-source-wordpress Customer ⠧ gatsby-source-wordpress MenuItem ⠧ gatsby-source-wordpress Menu ⠧ gatsby-source-wordpress Order ⠧ gatsby-source-wordpress Page ⠧ gatsby-source-wordpress PostFormat ⠧ gatsby-source-wordpress Post

ERROR

gatsby-source-wordpress It took too long for http://mysite.com/graphql to respond (longer than 30 seconds). `

How can I solve this?

TBSTDev commented 3 years ago

I have the same issue

hofdee commented 3 years ago

add this to your gatsby config file. Play around with those:

schema:{ perPage: 20, timeout: 90000, requestConcurrency: 2, previewRequestConcurrency: 2,

    },
imranhsayed commented 2 years ago

Thanks, @hofdee for actively answering people's questions on Github issues, If you get some, your contribution to https://github.com/imranhsayed/gatsby-woocommerce-themes/pull/77 is welcomed, for this open-source project.

I built this project using node v14.15.4, npm 6.14.10