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

Function readVideoErrorText

apps/sim/app/api/tools/video/route.ts:56–61  ·  view source on GitHub ↗
(response: Response, label: string)

Source from the content-addressed store, hash-verified

54}
55
56async function readVideoErrorText(response: Response, label: string): Promise<string> {
57 return readResponseTextWithLimit(response, {
58 maxBytes: DEFAULT_MAX_ERROR_BODY_BYTES,
59 label,
60 }).catch(() => '')
61}
62
63export const POST = withRouteHandler(async (request: NextRequest) => {
64 const requestId = generateId()

Callers 5

generateWithRunwayFunction · 0.85
generateWithVeoFunction · 0.85
generateWithLumaFunction · 0.85
generateWithMiniMaxFunction · 0.85
generateWithFalAIFunction · 0.85

Calls 1

Tested by

no test coverage detected