You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AI issue labeler summary (classification based on trusted dev branch evidence): Labels: none The issue could not be labeled automatically because AI analysis failed or returned an invalid response.
Activity
github-actions commentedon Jun 7, 2026
AI issue labeler summary (classification based on trusted dev branch evidence): Labels: none The issue could not be labeled automatically because AI analysis failed or returned an invalid response.
zqbxdev commentedon Jun 7, 2026
已做本地排查和一个低风险缓解修复,尚未 push。
结论
本地现有容器暂未复现该问题:
webchat2api-dev:/health、/version、/、/index.html均快速返回;/_next/_index.txt快速 404webchat2apiv0.0.11:同样未复现,/和/index.html均约 2ms 返回 200因此该问题更像是偶发/状态型/环境相关问题,而不是当前本地容器稳定复现问题。
代码路径判断
/health和/version是轻量 JSON 路由,不访问静态文件;而/和/index.html走 catch-all 静态路由并返回FileResponse(index.html)。这能解释为什么健康检查正常但首页静态响应可能卡住。本地修复
已在本地
dev分支提交一个低风险缓解修复:b09504c fix: cache frontend static asset lookup主要变化:
web_dist基础路径index.html路径/和/index.html避免每次重复执行同步文件系统解析/stat_next/...缺失资源快速 404相关测试:
test/test_static_serving.py验证
已通过:
并构建独立临时镜像
webchat2api-issue28-test:local,启动临时容器绑定8084:83验证:临时容器已删除,未影响现有容器。
说明
由于本地没有复现超时,当前修复不能声称已经根治,只能作为针对最可疑静态文件路径的防御性缓解。后续如果线上再次出现,需要在故障时抓取:
curl http://127.0.0.1:83/与外部域名对比/app/web_dist/index.htmlstat/read 耗时zqbxdev commentedon Jun 7, 2026
补充一下:相关改动已经推到 dev 分支了。
提交:
前面那条评论里的“尚未 push”是当时本地验证阶段的状态,现在已更新。