What would cause a Firebase function to timeout on load?

Viewed 681

I've got several functions in my project. After leaving them for a few hours, they'll go to sleep, like usual. However, when I go to use them, they'll take about a minute or two before anything happens, and the client just gets a 500 error.

In the Firebase console, I see that the function errored with "load timeout". Sometimes, I'll have to run a function 3 or 4 times before it loads correctly and actually runs. After that, it's fine until it goes back to sleep.

I haven't be able to find anyone else who has this issue. Searches for "load timeout" don't bring up anything.

What might cause this? How can I diagnose it?

0 Answers
Related