Bug: Function failures are being reported to merchants, but no corresponding errors appear in Function logs

We’re seeing what looks like a gap in Shopify Functions logging / observability.

In some cases:
• the merchant receives a notification that a Function has failed
• they share the logs / failure details with us
• but there are no corresponding error logs visible in the Function logs

That leaves us in a difficult spot as app developers, because a failure is clearly being surfaced to the merchant, but there is nothing meaningful on our end to inspect or debug.

Right now, this creates a disconnect between:
• what the merchant is being told
• and what the developer is actually able to see in the logs

Our hypothesis is that some of these may be timeout errors, but the bigger issue is not specifically timeouts. The real issue is that failures seem to be happening without corresponding error visibility in the Function logs.

A few questions for the Shopify team:
• Are all Function failures expected to show up in Function logs?
• Are there known cases where a merchant can receive a failure notification but the developer cannot see the underlying error in logs?
• Has anything changed recently in how these failures are surfaced?
• What is the recommended debugging path when a merchant is notified of a failure but no actual error shows up in the logs?

Would appreciate clarity here, because right now it feels like there is a blind spot in debugging production Function failures.

If others are seeing this too, would love to know.

3 Likes

Hey @prakhar - thanks for the detailed write-up and screenshots here, super helpful.

This does seem odd. We’re looking into this further on our end here to see what’s going on with the disconnect between what the merchant is seeing and what’s showing up in the Function logs.

I’ll loop back once I have more info to share.