
After some analysis about the timeout during the execution of functions, I'm getting older and bun server is not the latest version. I think it is possible to update the bun version to the latest one, it is possible to solve the problem.

https://discord.com/channels/564160730845151244/1190259226619170866
I raised a question here.

https://discord.com/channels/564160730845151244/1185934883009335376 @Mosh Ontong Here, a colleague is also having a problem with this. He says he only experiences it with bun

@Core

Not needed to pin core 😅

For now the only supported version is Bun 1.0

Could you please give some more context on the error?

We tend to update runtimes versions between minor releases. @dlohani could take a look and see if we can upgrade it in 1.5

Sorry

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.

It seems to me that if we solve the problem with this, it would be useful for many people. Many developers want to experience Bun server.

I see. Could be a bun specific issue as said

Therefore, offering to raise the issue of updating bun to version 1.0.20, this is the most up-to-date version.

Perhaps this will solve the problem of many faster than waiting for version 1.5

I hope we can upgrade the bun on 1.1 as they will release windows support and fixed numerous bugs

and also I have been encountering some bun bugs for example this
https://github.com/oven-sh/bun/issues/4983
Now in the latest of bun version they fixed it. And some genererating crypto or nanoid . Got an error but relates on bun problem. I hope that when 1.1 have been released the bun run time in appwrite will also be updated

I totally agree with “We also observe that the function is executed successfully, but the response is not returned after the completion…” I also experience this one

@erikkamalov If you are running out of time. You can convert your bun into node js. It just takes short time to convert it. Thats what I did
Recommended threads
- appwrite 1.7.0 Failed to fetch
We recently upgraded our Appwrite installation from version 1.6.2 to 1.7.0, and since the upgrade, we are unable to log in to the Appwrite console. The login at...
- Attribute already exists in schema
I created an attribute, deleted it and now I can't create it again. It says "Failed" and "Attribute already exists in schema". ```json { "27": { "ke...
- Decentralisation
I had queries regarding decentralisation with self hosting, particularly with sites as a recent addition. Can we decentralise sites as in many cases we would li...
