Skip to content

Commit c31177f

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 354df21 commit c31177f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ async function proxyChatCompletions(req, res) {
9999
res.writeHead(hubRes.status, { "content-type": "application/json" });
100100
res.end(text);
101101
} catch (err) {
102+
console.error("proxyChatCompletions failed:", err);
102103
res.writeHead(502, { "content-type": "application/json" });
103-
res.end(JSON.stringify({ error: String(err) }));
104+
res.end(JSON.stringify({ error: "upstream inference request failed" }));
104105
} finally {
105106
recordLlmLatency(performance.now() - llmStart, llmOk);
106107
}

0 commit comments

Comments
 (0)