imranhsayed / gatsby-woocommerce-themes

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

Not able upload more than 10 items #80

Open jawadan opened 3 years ago

jawadan commented 3 years ago

It gives me "error timeout of 30000ms exceeded" when I try to upload more than 10 items, I am hosting WP on cheapest AWS lightsail plan. If I get faster plan will it solve the problem?

jawadan commented 3 years ago

I also tried to run it with hostinger's business plan, it was able to upload maximum 36 items. I guess it's the limit.

hofdee commented 3 years ago

try to increase the timeout to 120000ms on the gatsby config file

jawadan commented 3 years ago

try to increase the timeout to 120000ms on the gatsby config file

It doesn't really work I guess, still showing the same error

jawadan commented 3 years ago

Here is what I have tried, but it still throws error gatsby-source-wordpress Your wordpress server at http://my-web-url/graphql appears to be overloaded.

resolve:gatsby-source-wordpress-experimental, options: { url:${wordPressUrl}/graphql, schema: { perPage: 100, timeout: 1000000, requestConcurrency: 50, previewRequestConcurrency: 50, },

hofdee commented 3 years ago

try also increasing the WP_MEMORY_LIMIT on the wp_config.php file

jawadan commented 3 years ago

try also increasing the WP_MEMORY_LIMIT on the wp_config.php file

I did everything as you instructed, and it actually deployed once with little over 50 products, but the feature deploys didn't go through.

`

`

hofdee commented 3 years ago

Here is what I have tried, but it still throws error gatsby-source-wordpress Your wordpress server at http://my-web-url/graphql appears to be overloaded.

resolve:gatsby-source-wordpress-experimental, options: { url:${wordPressUrl}/graphql, schema: { perPage: 100, timeout: 1000000, requestConcurrency: 50, previewRequestConcurrency: 50, }, reduce the perPage to about 20 and the concurrency to something like 2.. try reducing as low as you can get and also see how it goes

jawadan commented 3 years ago

Now it gives me this

`

error Error: Request failed with status code 502

01:30:11.587 | at createError (/vercel/path0/node_modules/axios/lib/core/createError.js:16:15) 01:30:11.587 | at settle (/vercel/path0/node_modules/axios/lib/core/settle.js:17:12) 01:30:11.587 | at IncomingMessage.handleStreamEnd (/vercel/path0/node_modules/axios/lib/adapters/http.js:236:11) 01:30:11.587 | at IncomingMessage.emit (events.js:412:35) 01:30:11.588 | at endReadableNT (internal/streams/readable.js:1334:12) 01:30:11.588 | at processTicksAndRejections (internal/process/task_queues.js:82:21) {

`