
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
- Problem for certificate
Good evening! I installed Appwrite on my hosting via Docker Compose. Then I set up the .env configuration. But for some reason it does not support HTTPS, when l...
- Every time I deploy a function via CLI, ...
deploying appwrite function via cli breaks Git connection in function settings tab but when I push to git triggered deployment fail. usually multiple deployment...
- A way to configure cloud function config...
Is there a way to configure cloud functions locally and keep that in github and deploy from source control instead of manually configuring it from the console f...
