MCPcopy Index your code
hub / github.com/simstudioai/sim / extractGraphError

Function extractGraphError

apps/sim/tools/microsoft_excel/utils.ts:108–111  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

106 * Safely handles non-JSON bodies and read failures. Used by internal API routes.
107 */
108export async function extractGraphError(response: Response): Promise<string> {
109 const errorText = await response.text().catch(() => '')
110 return parseGraphErrorMessage(response.status, response.statusText, errorText)
111}
112
113/**
114 * Escape a string for use inside an OData single-quoted literal (e.g. a

Callers 2

route.tsFile · 0.90
route.tsFile · 0.90

Calls 2

parseGraphErrorMessageFunction · 0.85
textMethod · 0.80

Tested by

no test coverage detected