I am getting InstructionCountLimitExceededError on my discount function every three hours. And on looking at the logs I see somebody is creating a cart with large number of SKUs. I dont see it in my abandoned cart report or anything. And for sure I dont have customers who place such high orders. Please help me figure out how to debug this further?
Are you using JavaScript or Rust? Shopify strongly recommends Rust as the most performant language choice to prevent your function from failing with large carts
Got it, so once I have buyer Identity, can I block them via email? Is there another way to find these users? They dont appear in my abandoned cart report as well.
I am experiencing the same thing for my car transformer.
every 2-3 hours I get exactly 50 errors even tough I know my shopify function runs with no operations at all.
Most likely just some type of bot/crawler that is adding items to a cart. Be careful blocking these as we actually do not know if it is google, yahoo, or another search engine.
Also, I would like to point out that this doesn’t cause any harm. This is a local error that happens when a lot of items are added to the cart.
20,367 runs
Total errors: "356"
Last 7 Days
Rate of errors: "1.75%"
Last 7 Days
Errors by occurrence
InputSizeLimitExceededError: 216
InstructionCountLimitExceededError: 140
Here is my shops stats for the last 7 days. I think this is one of those issues that does no harm and is much more complicated to solve than its worth.
Your instrction count seems a little bit higher than it would be with just this issue. I think you might want to check your code and see if your code is actually causing the error.