{"record":{"id":"5624f2a105add935","repo":"diegosouzapw/OmniRoute","slug":"executor-error","errorCode":"EXECUTOR_ERROR","errorMessage":"${msg}","messagePattern":"\\$\\{msg\\}","errorType":"http","errorClass":null,"httpStatus":502,"severity":"error","filePath":"open-sse/executors/theoldllm.ts","lineNumber":446,"sourceCode":"      const errorPayload = vercelMitigated\n        ? buildVercelMitigationError()\n        : buildErrorResponse(upstream.status, finalBody);\n      return this.executionResult(\n        input,\n        new Response(encoder.encode(errorPayload), {\n          status: upstream.status,\n          headers: { \"Content-Type\": \"application/json\" },\n        }),\n        body\n      );\n    } catch (err) {\n      const proxyUnavailable = err instanceof TheOldLlmProxyUnavailableError;\n      const msg = err instanceof Error ? err.message : String(err);\n      log?.error?.(\"THEOLDLLM\", `Executor error: ${msg}`);\n      const errorPayload = proxyUnavailable\n        ? buildProxyUnavailableError()\n        : JSON.stringify({\n            error: { message: msg, type: \"upstream_error\", code: \"EXECUTOR_ERROR\" },\n          });\n      return this.executionResult(\n        input,\n        new Response(encoder.encode(errorPayload), {\n          status: proxyUnavailable ? 503 : 502,\n          headers: { \"Content-Type\": \"application/json\" },\n        }),\n        body\n      );\n    }\n  }\n}\n\nexport default TheOldLlmExecutor;\n","sourceCodeStart":428,"sourceCodeEnd":461,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/open-sse/executors/theoldllm.ts#L428-L461","documentation":"Catch-all in TheOldLlmExecutor.execute: an exception escaped the request pipeline (network failure, proxy setup error, parse crash). It is logged as THEOLDLLM Executor error and the message is returned as a sanitized upstream_error response; the proxy-unavailable case is special-cased before this generic path.","triggerScenarios":"Thrown at open-sse/executors/theoldllm.ts:446 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the THEOLDLLM log line for the raw error message","Verify network/proxy reachability to theoldllm.com","Retry the request; if persistent, reproduce with debug logging"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}