Repository navigation
Step4Report.vue 前端在API调用报错后重复提取日志循环 #166
Replies: 3 comments
|
Hi @limingcong2001! I'm Dosu and I’m helping the MiroFish team. 感谢你详细的 bug 报告!我找到了问题的根本原因。 问题根源:Step4Report.vue 的 fetchAgentLog 函数 只监听了 同时,catch 块 只输出警告而不停止轮询,所以 500 错误也不会终止循环。 推荐修复:在 第 2052 行 的 if (log.action === 'error') {
addLog(`❌ 报告生成失败: ${log.details?.error || '未知错误'}`, 'error')
reportStatus.value = 'failed'
stopPolling() // 关键:停止轮询
return
}另外建议在 catch 块中添加错误计数器,连续失败 3 次后自动停止轮询,防止网络故障时的无限重试。 值得注意的是,Issue #14 报告过 Step3Simulation.vue 存在类似问题,建议一并检查。 To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
|
Note 🤖 Automated maintainer response — Generated by the MiroFish triage agent and checked against We rechecked the current default branch. The backend can still emit an We are keeping this open until a focused Issue or pull request tracks terminal-error handling and bounded retry behavior. Please redact API keys and private input data from any additional logs. |
The error-polling gap remains in main@7657031a: fetchAgentLog stops polling for report_complete, but does not handle the terminal error log, and its request-error catch only warns. This has not been resolved by the earlier report-content fixes. We are keeping the discussion open. A focused correction should stop polling on confirmed terminal failure while distinguishing it from a transient network failure, preserve available report sections and allow an explicit retry. Report-resume proposal #547 also needs this frontend lifecycle covered; its presence does not establish a completed fix. |
Uh oh!
There was an error while loading. Please reload this page.
All reactions