edge-runtime
edge-runtime copied to clipboard
Requests to edge function fails on the server but works locally, please help
Bug report
- [x] I confirm this is a bug with Supabase, not with my own application.
- [ ] I confirm I have searched the Docs, GitHub Discussions, and Discord.
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
- OS: manjaro
- Browser (if applies): postman
- Version of supabase-js: n/a
- Version of Node.js: n/a
@drobles-atdev Do you still experience this issue? I believe you opened a support ticket on this, to which I have responded.
Closing due to inactivity.