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

Function parseJsonResponse

apps/sim/tools/instantly/utils.ts:337–343  ·  view source on GitHub ↗
(response: Response)

Source from the content-addressed store, hash-verified

335} satisfies ToolConfig['outputs']
336
337async function parseJsonResponse(response: Response): Promise<unknown> {
338 try {
339 return await response.json()
340 } catch {
341 return null
342 }
343}
344
345function extractInstantlyError(value: unknown, fallback: string): string {
346 const data = asRecord(value)

Callers 1

parseInstantlyResponseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected