-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local Edge functions: event loop error after a few minutes #206
Comments
I rolled back to |
Transferring because it sounds like an issue with edge runtime container. |
I can also verify that I'm experiencing the same issue. |
Seeing the same issue also |
I'm also seeing this issue, can't update supabase beyond 1.106.1 or edge fns break every few minutes. |
yep. same |
I'm also experiencing this issue with CLI version |
I had this is issue too on my M2 mac until i upgraded Docker Desktop (it was very much out of date) as well as supabase. Now running without a single crash on supabase |
My Docker Desktop version is |
Thanks @hyldmo. Updating Docker Desktop and my supabase CLI resolved the crashing issue. |
Any comments on whether the |
same |
same issue here, i don't get an error, but all cloud functions become very slow or irresponsive after a couple requests. Seems like the workers don't exit execution. If i restart the runtime it works again for a couple of request |
I as well am getting related issues. I get wall clock duration reached. isolate: d66d7171-0472-48db-a589-a52454d89a26
isolate memory usage sender dropped
wall clock duration warning. isolate: 476ff220-04b9-41ee-a5dc-7db65464616a
wall clock duration reached. isolate: 476ff220-04b9-41ee-a5dc-7db65464616a
isolate memory usage sender dropped I also am having an issue where I cannot use the runtime has escaped from the event loop unexpectedly: event loop error: TypeError: Deno.statSync is not a function
at existsSync (https://deno.land/[email protected]/fs/exists.ts:121:23)
at EnvService.dirDoesNotExist (file:///home/deno/functions/instructor-ui/services/env-service.ts:100:13)
at EnvService.validateInitEnvFile (file:///home/deno/functions/instructor-ui/services/env-service.ts:65:14)
at EnvService.loadEnv (file:///home/deno/functions/instructor-ui/services/env-service.ts:22:48)
at file:///home/deno/functions/instructor-ui/index.ts:5:12
failed to send request to user worker: connection error: Connection reset by peer (os error 104)
user worker failed to respond: connection error: Connection reset by peer (os error 104)
InvalidWorkerResponse: user worker failed to respond
at async Promise.allSettled (index 1)
at async UserWorker.fetch (ext:sb_user_workers/user_workers.js:79:21)
at async Server.<anonymous> (file:///home/deno/main/index.ts:146:12)
at async #respond (https://deno.land/[email protected]/http/server.ts:220:18) {
name: "InvalidWorkerResponse"
} I have tried to search for any open or closed issues on this to see if I can get some more info but have come up dry. |
hello @CalvinWilkinson 😁 This runtime provides a limited File API compared to Deno 1, and that's a relatively recent change. From a security perspective, allowing file access can be problematic. As for the error message... that's something that needs to be documented for self-hosted users 🙄
Do you mind if I ask what version of the runtime you're getting this message from? I remember this is something I've already fixed.
This error message is a trivial runtime message caused by a script error, so you don't have to care about it, but now that I think about it, it's a bit verbose for a user 😅 Footnotes |
That is good to know. Thanks for the update!! As for the runtime, here is what I have:
I hope that is what you need. If you need anything else. let me know. |
Your version of Deno is different from the version of Deno that The actual version of edge-runtime included in the It's pretty complicated, isn't it?😅 I think this needs to be documented at some point. You can upgrade the CLI version to beta to bring edge-runtime up to date4. Footnotes |
That makes sense to me!! Indeed I am running a separately installed version of deno due to other projects. |
Describe the bug
It seems that after my edge function has been running locally for some time (perhaps a few minutes) I start to get these messages in the logs:
And then eventually I see this:
After that error happens, all my requests fail with this:
The function is as simple as this:
To Reproduce
Steps to reproduce the behavior:
supabase functions serve
event loop error
"connection was not ready"
errorExpected behavior
Local functions should not randomly crash after only a few minutes :)
Desktop (please complete the following information):
1.110.1
Additional context
At least one other person has reported experiencing this problem in the supabase discord (The above report is using their description).
The text was updated successfully, but these errors were encountered: