I'm able to deploy a deno edge function locally and run a test without problems using supabase functions serve --env-file ./supabase/functions/.env.local. The supabase-js client library loads fine when I run deno test --allow-all ./tests/jl-call-test.ts --env=./functions/.env.local. However, the functions server shuts down with the following error:
As I said the above snippet runs perfectly well in my unit test. Running with the --debug flag outputs no extra information.
Weirdly, if I remove the supabase-js client logic, my function is responsive in local development and works as expected. Any idea what might be going on here? Thanks 🫶
System information
OS: Linux Ubuntu 22.04
Version of supabase-js: 2.38.4, but same error occurs in older versions
Version of Deno: 0.192.0, but same error occurs in older versions
Bug report
Description
I'm able to deploy a deno edge function locally and run a test without problems using
supabase functions serve --env-file ./supabase/functions/.env.local
. The supabase-js client library loads fine when I rundeno test --allow-all ./tests/jl-call-test.ts --env=./functions/.env.local
. However, the functions server shuts down with the following error:which happens at
As I said the above snippet runs perfectly well in my unit test. Running with the --debug flag outputs no extra information.
Weirdly, if I remove the supabase-js client logic, my function is responsive in local development and works as expected. Any idea what might be going on here? Thanks 🫶
System information