The script stops because of API calls which exceed the authorized limit Documentation : https://shopify.dev/docs/api/usage/rate-limits Solution : add parameter `autoLimit` inside the Shopify object parameters