Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build & dev failed with timeout error #40

Open
bradjin8 opened this issue Nov 16, 2020 · 3 comments
Open

build & dev failed with timeout error #40

bradjin8 opened this issue Nov 16, 2020 · 3 comments

Comments

@bradjin8
Copy link

bradjin8 commented Nov 16, 2020

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

  • createError.js:16 createError
    [gatsby-woocommerce-themes]/[axios]/lib/core/createError.js:16:15

  • http.js:256 ClientRequest.handleRequestTimeout
    [gatsby-woocommerce-themes]/[axios]/lib/adapters/http.js:256:16

  • timers.js:531 listOnTimeout
    internal/timers.js:531:17

  • timers.js:475 processTimers
    internal/timers.js:475:7

⠇ 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
Copy link

TBSTDev commented Jan 25, 2021

I have the same issue

@hofdee
Copy link

hofdee commented Oct 5, 2021

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

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

    },

@imranhsayed
Copy link
Owner

Thanks, @hofdee for actively answering people's questions on Github issues,
If you get some, your contribution to #77 is welcomed, for this open-source project.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants