Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edge function written with Oak causes edge runtime container exit 139 on CLI >= 1.108.4 edge runtime >= 1.22.3 #204

Closed
calebdelnay opened this issue Nov 1, 2023 · 2 comments · Fixed by #227
Labels

Comments

@calebdelnay
Copy link

Describe the bug
Edge runtime container exits unexpectedly upon HTTP request when edge function uses oak 12.6.1, Supabase CLI >= 1.108.4, Edge Runtime >= 1.22.3.

DEBUG Specifier "https://deno.land/x/oak@v12.6.1/response.ts" was not mapped in import map.
Segmentation fault (core dumped)
2023/11/01 17:31:32 Sent Header: Host [api.moby.localhost]
2023/11/01 17:31:32 Sent Header: User-Agent [Docker-Client/unknown-version (linux)]
2023/11/01 17:31:32 Send Done
2023/11/01 17:31:33 Recv First Byte
error running container: exit 139

Response is:

{
    "message": "An invalid response was received from the upstream server"
}

To Reproduce
With Supabase CLI >= 1.108.4, create a function and use Oak as the HTTP server, per the Supabase guide here:
https://github.com/supabase/supabase/tree/master/examples/edge-functions/supabase/functions/oak-server

Run a request against the function. It'll fail and your terminal for the function will give an exit 139 error.

Expected behavior
Request handled successfully returning the string

This is an example Oak server running on Edge Functions!
@sweatybridge sweatybridge transferred this issue from supabase/cli Nov 8, 2023
@sweatybridge
Copy link

Moving this to edge runtime repo since the examples are maintained by @laktek

Copy link

github-actions bot commented Dec 6, 2023

🎉 This issue has been resolved in version 1.29.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants