Function Fails with "Internal Error" but Produces No Logs (Request ID included)

Hello Netlify Support Team,

I’m experiencing a persistent issue where a specific scheduled function on my site fails with a generic “Internal Error” page, but it never writes any output (neither success nor error) to its function log.

  • Site: revyou.co
  • Function Name: daily-tasks.js
  • Example Request ID from the error page: 01JYQ043FVJXQTWMYEKD96AWAX

The most confusing part is that other functions in the same project, using the same environment variables for Firebase and SendGrid, deploy and run perfectly. The issue is isolated to this one scheduled function.

We have already tried the following debugging steps without success:

  1. Verified all environment variables are correct and are proven to be working in other functions.
  2. Verified the required Firestore database index is created and shows as “Enabled” in the Firebase console.
  3. Verified that my custom domain (revyou.co) is on the “Authorized domains” list in Firebase Authentication.
  4. Renamed the function file and redeployed to force a completely clean build.
  5. Deployed a minimal “empty shell” version of the function with no dependencies and no logic. This simple test still resulted in the same “Internal Error” page with no logs generated.

Since no application-level logs are being generated even from an empty shell, the error seems to be happening at the platform or container initialization level.

Could you please use the Request ID (01JYQ043FVJXQTWMYEKD96AWAX) to look at the underlying infrastructure logs for this function invocation and see what is causing the crash?

Thank you so much for your help.

I’m seeing that a total of 37 requests have failed for your site across the past 30 days. Does that sound about right or are you continuously seeing some issues?

that sounds correct.

Okay, I’ve asked the devs about the error. Seems to be always happening across the entire network in a very small percentage of total requests.