The error is very hidden and not clear, it is very difficult to catch. I spent 4-5 days trying to catch the error.
The bottom line is that in some cases, when calling a function, it feels like the entire infrastructure is falling down. When this happens, even the appwrite console stops working. The duration of the error depends directly on the timeout duration of the function.
I suspect that the problem arises precisely when a new appwrite execution is created.
We also observe that the function is executed successfully, but the response is not returned, after the completion of the function, the response is lost somewhere in the bun server. Thus, a timeout occurs.
We have checked all the functions for a response, they are all working properly.
When we test the local functions by launching the bun server, everything works fine for us.
We wanted to launch our project happy new year, but experienced a problem with the timeout. We have a project of about 4 functions written in typescript with bun.