Rank 4: Virtual Machine
I've got a dart function that fails after the timeout. There is no error thrown in dart and the console logs debugging messages I put in until it gets to a line of code that is querying the DB for docs. I haven't nailed down yet if that is reliably the only line of code that it is stopping at yet.
Many other functions work with querying the DB so I don't think it is a self-hosted communication in the cluster issue between the function and the DB. Sometimes the problematic function does work when running for different parameters.
My current thought is maybe there is a memory issue and the execution fails when loading the data in from the DB. I can't see any obvious RAM issues when looking at the server as a whole.
Any ideas on how to debug this?