dy-dashboard/vault/知识库/工作指南/训练记录/2026-08-19-库存看板保存请求异常修复.md
2026-10-28 11:14:17 +08:00

9 lines
668 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### 1. 修复库存看板保存请求异常
**旭东 → OpenClaw:**
> 我点击保存,提示请求异常:SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
**OpenClaw 响应:**
已定位到保存接口返回500的原因:测试服务仍使用旧版 Gunicorn worker,旧代码向已增加月份必填字段的人工数据表写入时遗漏 month_key,导致数据库报错并返回HTML错误页,前端解析JSON失败。已重启当前用户的 `dy-dashboard.service`,加载最新按月份保存代码;服务状态 active,HTTP 18888 返回200。现在再次点击保存即可按当前月份正常保存。
已记录