{"record":{"id":"0a3340f397adcbf5","repo":"diegosouzapw/OmniRoute","slug":"failed-to-extract-csrf-nonce-from-veoaifree-com","errorCode":null,"errorMessage":"Failed to extract CSRF nonce from veoaifree.com","messagePattern":"Failed to extract CSRF nonce from veoaifree\\.com","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"open-sse/executors/veoaifree-web.ts","lineNumber":221,"sourceCode":"}\n\nasync function fetchSession(\n  context: VeoSessionContext,\n  url: string,\n  init: RequestInit = {}\n): Promise<Response> {\n  const response = await fetchWithTimeout(url, init, context.signal);\n  updateSessionCookies(context, response);\n  return response;\n}\n\nasync function fetchNonce(context: VeoSessionContext): Promise<string> {\n  const res = await fetchSession(context, BASE_URL, {\n    headers: buildRequestHeaders(context, { includeCookie: false }),\n  });\n  const html = await res.text();\n  const match = html.match(/nonce\":\"([a-f0-9]+)\"/);\n  if (!match) throw new Error(\"Failed to extract CSRF nonce from veoaifree.com\");\n  return match[1];\n}\n\nasync function postAjax(\n  context: VeoSessionContext,\n  nonce: string,\n  params: Record<string, string>\n): Promise<string> {\n  const body = new URLSearchParams({ action: \"veo_video_generator\", nonce, ...params });\n  const res = await fetchSession(context, AJAX_URL, {\n    method: \"POST\",\n    headers: buildRequestHeaders(context, {\n      contentType: \"application/x-www-form-urlencoded\",\n      includeOrigin: true,\n    }),\n    body: body.toString(),\n  });\n  return res.text();","sourceCodeStart":203,"sourceCodeEnd":239,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/veoaifree-web.ts#L203-L239","documentation":"Error \"Failed to extract CSRF nonce from veoaifree.com\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at open-sse/executors/veoaifree-web.ts:221 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}