WorkerAlreadyRetired
I get this error when I serve my supabase functions locally with the --inspect-mode flag. I want to use chrome inspect the debug my edge functions. Even when creating the most simple application that only has a hello world edge function, it gives me this error.
Full error:
2025-09-08T15:07:35.303116175Z Serving functions on http://127.0.0.1:54321/functions/v1/<function-name>
2025-09-08T15:07:35.303176133Z - http://127.0.0.1:54321/functions/v1/hello-world
2025-09-08T15:07:35.303180925Z Using supabase-edge-runtime-1.69.1 (compatible with Deno v2.1.4)
2025-09-08T15:48:36.962272634Z serving the request with supabase/functions/hello-world
2025-09-08T15:48:37.081644467Z Debugger listening on ws://0.0.0.0:8083/ws/effc4998-9b6a-4aba-87ec-d312a95912fe
2025-09-08T15:48:37.081784467Z Visit chrome://inspect to connect to the debugger.
2025-09-08T15:48:37.081792134Z Worker is waiting for debugger to connect.
2025-09-08T15:48:37.086858092Z thread 'sb-supervisor' panicked at crates/base/src/worker/supervisor/strategy_per_worker.rs:195:35:
2025-09-08T15:48:37.086915425Z
period
must be non-zero.
2025-09-08T15:48:37.086921634Z note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
2025-09-08T15:48:37.088837509Z user worker failed to respond: request cannot be handled because the worker has already retired
2025-09-08T15:48:37.093198509Z WorkerAlreadyRetired: request cannot be handled because the worker has already retired
2025-09-08T15:48:37.093243009Z at async Function.allSettled (<anonymous>)
2025-09-08T15:48:37.093249967Z at async UserWorker.fetch (ext:user_workers/user_workers.js:84:63)
2025-09-08T15:48:37.093254550Z at async Object.handler (file:///var/tmp/sb-compile-edge-runtime/root/index.ts:176:14)
2025-09-08T15:48:37.093256134Z at async mapped (ext:runtime/http.js:231:18) {
2025-09-08T15:48:37.093257509Z name: "WorkerAlreadyRetired"
2025-09-08T15:48:37.093259134Z }
2025-09-08T15:48:37.692004342Z Debugger session started.1 Reply
What am I doing wrong?
I updated Supabase to the latest version