It is possible to enable Deno unstable flag on Edge Functions? #14604
Replies: 2 comments
-
@thawankeane Supabase uses Deno Deploy according to this blog post. By following these discussions and issues:
I found out Deno Deploy is a different runtime than Deno and things like |
Beta Was this translation helpful? Give feedback.
-
Self-hosted services usually use self-signed certificates with self-signed root certificates. Deno connectTls does not give the option to trust them, which makes us receive the following error in this case. There should be a way of connecting to servers with self-signed certificates i think. error: Uncaught (in promise) InvalidData: invalid peer certificate: Other(OtherError(UnsupportedCertVersion)) "--unsafely-ignore-certificate-errors" would solve it, but they wouldn't enable this for security. I think there needs to be a way to trust based on specific connection. |
Beta Was this translation helpful? Give feedback.
-
I need to make authenticated fetch API calls through TLS using certificates, the only way that I found to make it is to use the unstable
Deno.createHttpClient
function. It works locally, but when I deployed to supabase at runtimes it throws an errorDeno.createHttpClient is not a function
.My guess is that it may be that supabase edge functions by default do not come with the
unstable
flag astrue
. Is there a way to make this work?Beta Was this translation helpful? Give feedback.
All reactions