From 985d024a6ef0631b621ae7135a1f60fcfc9b3070 Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Thu, 29 Jan 2026 19:47:59 -0800 Subject: [PATCH] fix: handle non-string serverLogs in error report (#8460) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - Fix `[object Object]` display in error report logs section ## Changes - Add runtime type check for `serverLogs` in error report template - JSON stringify object logs with proper formatting ## Test plan - [x] Verify string logs still display correctly - [x] Verify object logs are properly stringified instead of showing `[object Object]` Fixes https://github.com/Comfy-Org/ComfyUI_frontend/issues/8463 ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8460-fix-handle-non-string-serverLogs-in-error-report-2f86d73d36508179af5afcdeec025a75) by [Unito](https://www.unito.io) Co-authored-by: Subagent 5 --- src/utils/errorReportUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/errorReportUtil.ts b/src/utils/errorReportUtil.ts index 33fd3d236..5d105ee63 100644 --- a/src/utils/errorReportUtil.ts +++ b/src/utils/errorReportUtil.ts @@ -66,7 +66,7 @@ ${systemStats.devices .join('\n')} ## Logs \`\`\` -${error.serverLogs} +${typeof error.serverLogs === 'string' ? error.serverLogs : JSON.stringify(error.serverLogs, null, 2)} \`\`\` ## Attached Workflow Please make sure that workflow does not contain any sensitive information such as API keys or passwords.