Hey Guys!
We’re noticing "InstructionCountLimitExceededError"
logs appearing in our function run logs. While the volume of these errors is good enough to take a note of, we’ve not received any complaints from merchants about their discounts failing.
After investigating, we observed a pattern:
→ Some store logs consistently show 250 cart line items.
→ This is highly unrealistic for 99% of our customers, which explains why merchants haven’t reached out to us.
→ Analyzing their order data reveals that the maximum number of line items per order is typically between 70-80, and at most, 110.
→ What’s puzzling is how these carts with 250 line items are being generated in the first place. Merchants seem unaware of any automation scripts or testing setups that might be creating such carts without placing corresponding orders.
This makes it challenging to distinguish realistic errors from these anomalies (if any). Additionally, it’s unclear why multiple stores are experiencing failures with the same cart line item count of 250. Reducing our error rate is crucial to ensure our functions are properly optimised but if we get these errors it’s becoming very difficult to understand.
While we continuously optimise our functions with every upgrade, handling 250 items per cart is currently not possible right now. If this issue had been flagged by merchants and if they had been creating these carts, we could prioritise a solution. However, given their lack of awareness, we’re struggling to determine the root cause.
PS: The number stores with these logs is not that high right now, but we’re very curious to understand what’s causing this.
If anyone has insights into this or has encountered a similar issue, your input would be greatly appreciated.
Thanks a lot!