Skip to content

fix(functions): prevent silent hangs in local edge runtime#5217

Open
AndroidPoet wants to merge 1 commit intosupabase:developfrom
AndroidPoet:fix/3879-edge-runtime-timeout
Open

fix(functions): prevent silent hangs in local edge runtime#5217
AndroidPoet wants to merge 1 commit intosupabase:developfrom
AndroidPoet:fix/3879-edge-runtime-timeout

Conversation

@AndroidPoet
Copy link
Copy Markdown

Summary

  • add a timeout wrapper around worker.fetch(req) in functions serve runtime template
  • return 504 Gateway Timeout with explicit message when function execution never resolves

Why

Issue #3879 reports JWT.getAccessToken() hanging silently in local edge runtime.
This change prevents indefinite request hangs and surfaces a deterministic error response.

Testing

  • go test ./internal/functions/serve -run TestServe -count=1

@AndroidPoet AndroidPoet requested a review from a team as a code owner May 9, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant