supabase/supabase · error
Failed to test edge function
Error message
Failed to test edge function
What it means
Error "Failed to test edge function" thrown in supabase/supabase.
Source
Thrown at apps/studio/pages/api/edge-functions/test.ts:100
const responseHeaders: Record<string, string | string[]> = {}
response.headers.forEach((value, key) => {
const existing = responseHeaders[key]
if (existing === undefined) {
responseHeaders[key] = value
} else if (Array.isArray(existing)) {
existing.push(value)
} else {
responseHeaders[key] = [existing, value]
}
})
return res.status(200).json({
status: response.status,
headers: responseHeaders,
body: responseBody,
})
} catch (error: any) {
return res.status(500).json({
status: 500,
error: {
message: error.message || 'Failed to test edge function',
},
})
}
}
View on GitHub (pinned to beee91b9c2)
When it happens
Trigger: Thrown at apps/studio/pages/api/edge-functions/test.ts:100 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of supabase/supabase@beee91b9c2 (2026-08-12).
Data as JSON: /api/errors/7309b39612fbdbb9.
Report an issue: GitHub.