How to schedule an automatic daily process (8 AM) in Firebase? Getting “Internal Error”

Hi everyone,

I’m trying to configure an automatic daily process in Firebase and I’m running into an issue.

In my project I have a page where I register several APIs. On this page I have:

  1. A button that activates a given API (sends the request), and

  2. Another button that saves the information returned by that API into my Firebase project.

What I would like to do is have Firebase run this whole process automatically every day at 8:00 AM (as if it were clicking those two buttons for each API, one after the other).

I have already tried to configure this twice, but I always end up with an “Internal Error” and the task never finishes successfully. Unfortunately, the error message is not very clear, and I’m not sure if I’m structuring the scheduled process correctly or if there is some limitation I’m not aware of.

My questions are:

  • Has anyone already implemented something similar: an automatic/scheduled task in Firebase that calls an API and then saves the returned data?

  • What is the recommended approach or architecture for this in Firebase (e.g., using Cloud Functions + Scheduler, or something else)?

  • Is there anything specific that commonly causes this “Internal Error” in this type of setup?

Hello,

Please give Schedule functions  |  Cloud Functions for Firebase a try and report back.

Regards, Joe