You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a new edge function in my application, works fine when testing it locally, but keeps throwing the same unhandled exception "Request failed due to a server error".
I confirmed that the issue is not the edge function itself but the server its running from.
To Reproduce
just create a new edge function like so:
Deno.serve(async (req) => {
return new Response(JSON.stringify({ message:edge function test ${Math.random()} }), {
headers: { 'Content-Type': 'application/json' },
status: 200,
})
})
Expected behavior
it should return the json { message : "edge function test {some number}" }
Screenshots
System information
OS: manjaro
Browser (if applies): postman
Version of supabase-js: n/a
Version of Node.js: n/a
The text was updated successfully, but these errors were encountered:
drobles-atdev
changed the title
Requests to edge function fails on the server but works locally
Requests to edge function fails on the server but works locally, please help
May 15, 2024
Bug report
Describe the bug
I created a new edge function in my application, works fine when testing it locally, but keeps throwing the same unhandled exception "Request failed due to a server error".
I confirmed that the issue is not the edge function itself but the server its running from.
To Reproduce
just create a new edge function like so:
Deno.serve(async (req) => {
return new Response(JSON.stringify({ message:
edge function test ${Math.random()}
}), {headers: { 'Content-Type': 'application/json' },
status: 200,
})
})
Expected behavior
it should return the json { message : "edge function test {some number}" }
Screenshots
System information
The text was updated successfully, but these errors were encountered: