getAllTroubleshootingErrors() — supabase Function Reference
Architecture documentation for the getAllTroubleshootingErrors() function in Troubleshooting.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 3d399921_4c21_6851_0665_3721e77a88d8["getAllTroubleshootingErrors()"] f3c21f6c_33fa_3a4b_4b06_41a6cb6ec810["GlobalTroubleshootingPage()"] f3c21f6c_33fa_3a4b_4b06_41a6cb6ec810 -->|calls| 3d399921_4c21_6851_0665_3721e77a88d8 251ba9cf_d7d1_c258_e2c5_c15bf3695b3a["getAllTroubleshootingEntries()"] 3d399921_4c21_6851_0665_3721e77a88d8 -->|calls| 251ba9cf_d7d1_c258_e2c5_c15bf3695b3a b6e53903_33ec_9995_3031_d400948426c7["formatError()"] 3d399921_4c21_6851_0665_3721e77a88d8 -->|calls| b6e53903_33ec_9995_3031_d400948426c7 style 3d399921_4c21_6851_0665_3721e77a88d8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/features/docs/Troubleshooting.utils.ts lines 64–89
export async function getAllTroubleshootingErrors() {
const entries = await getAllTroubleshootingEntries()
const allErrors = new Set(
entries
.flatMap((entry) => entry.data.errors ?? [])
.filter((error) => error?.http_status_code || error?.code)
)
const seen = new Set<string>()
for (const error of allErrors) {
const key = formatError(error)
if (seen.has(key)) {
allErrors.delete(error)
}
seen.add(key)
}
function sortErrors(
a: NonNullable<ITroubleshootingMetadata['errors']>[number],
b: NonNullable<ITroubleshootingMetadata['errors']>[number]
) {
return formatError(a).localeCompare(formatError(b))
}
return Array.from(allErrors).sort(sortErrors)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getAllTroubleshootingErrors() do?
getAllTroubleshootingErrors() is a function in the supabase codebase.
What does getAllTroubleshootingErrors() call?
getAllTroubleshootingErrors() calls 2 function(s): formatError, getAllTroubleshootingEntries.
What calls getAllTroubleshootingErrors()?
getAllTroubleshootingErrors() is called by 1 function(s): GlobalTroubleshootingPage.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free