Skip to content

Commit 3e1f868

Browse files
Potential fix for pull request finding 'CodeQL / Information exposure through a stack trace'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent f97ed22 commit 3e1f868

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

deploy/helm/nemoclaw-gpu/files/agent-server.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ async function proxyChatCompletions(req, res) {
6262
res.writeHead(hubRes.status, { "content-type": "application/json" });
6363
res.end(text);
6464
} catch (err) {
65+
console.error("proxyChatCompletions upstream request failed:", err);
6566
res.writeHead(502, { "content-type": "application/json" });
66-
res.end(JSON.stringify({ error: String(err) }));
67+
res.end(JSON.stringify({ error: "upstream request failed" }));
6768
} finally {
6869
recordLlmLatency(performance.now() - llmStart, llmOk);
6970
}

0 commit comments

Comments
 (0)