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

10 lines
780 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 响应:**
已定位原因:库存看板接口在检查 `inventory_board_external` 表时,使用了不适配当前数据库连接返回格式的表存在判断,误判表不存在并重复创建,触发 MySQL 1050 错误,接口返回HTML错误页导致前端JSON解析异常。已改为通过 information_schema 查询表和字段,删除重复建表逻辑;重启用户级 `dy-dashboard.service` 后服务 active,接口未登录访问返回标准 JSON(401),不再返回HTML错误页。Git提交:a0447b2。
已记录