fetchErrorCodes() — supabase Function Reference
Architecture documentation for the fetchErrorCodes() function in errorSync.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 0dc710ee_65c7_af26_8980_5cb243840ef7["fetchErrorCodes()"] 5ac3111b_e635_2e95_edf9_68bd0c98535c["syncErrorCodes()"] 5ac3111b_e635_2e95_edf9_68bd0c98535c -->|calls| 0dc710ee_65c7_af26_8980_5cb243840ef7 dc251b6d_906f_6c94_fad9_efde7dffb5a6["doFetchErrorCodes()"] 0dc710ee_65c7_af26_8980_5cb243840ef7 -->|calls| dc251b6d_906f_6c94_fad9_efde7dffb5a6 b7f20a45_239b_a374_668f_7b4e0ac14799["transposeArray()"] 0dc710ee_65c7_af26_8980_5cb243840ef7 -->|calls| b7f20a45_239b_a374_668f_7b4e0ac14799 040a5796_eb59_9ff7_60d0_b127fcaa25c2["map()"] 0dc710ee_65c7_af26_8980_5cb243840ef7 -->|calls| 040a5796_eb59_9ff7_60d0_b127fcaa25c2 style 0dc710ee_65c7_af26_8980_5cb243840ef7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/resources/error/errorSync.ts lines 54–60
async function fetchErrorCodes(): Promise<Result<Array<ErrorCodeUploadParameters>, MultiError>> {
const arrayOfResults = await Promise.all([
doFetchErrorCodes('authErrorCodes.toml', Service.Auth),
doFetchErrorCodes('realtimeErrorCodes.toml', Service.Realtime),
])
return Result.transposeArray(arrayOfResults).map((result) => result.flat())
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does fetchErrorCodes() do?
fetchErrorCodes() is a function in the supabase codebase.
What does fetchErrorCodes() call?
fetchErrorCodes() calls 3 function(s): doFetchErrorCodes, map, transposeArray.
What calls fetchErrorCodes()?
fetchErrorCodes() is called by 1 function(s): syncErrorCodes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free