API timing out?
-
Just need someone to corroborate my findings.
I am in the process of migrating around 3500 products from eShop to Woocommerce. Part of that process involves using the API to load products –
$type = 'post'; $endpoint = 'products'; $response = $this->API_Call($type,$endpoint,$params,NULL);
with other scripts performing checks on those products.
$type = 'get'; $endpoint = 'products'; $params['filter']['sku'] = $partnumber; $response = $this->API_Call($type,$endpoint,$data, $params);
What I have experienced is that if I try and process all the products at once, the API fails, no error message. Indeed, anything more than about 100 at a time consistently fails.
The same code works perfectly on 100 or fewer products at a time.Is this known behaviour or is there a setting that I am unaware of that limits calls to the API, presumably security or anti DOS?
While it has been tiresome to process in batches of 100, in the future this could be a real problem as our woocommerce site will be linked to my stock control suite which will be constantly updating the site.
Dennis.
- The topic ‘API timing out?’ is closed to new replies.