Skip to content

[Bug] 旧版对话迁移失败:超出单次导入限制 #1141

Closed

Description

@xiaozhou26

现象

v2 迁移 1.x 旧对话时,部分长对话(尤其带图片的)失败,设置里显示「对话超过当前 K-brain 的单次导入大小限制」,这些对话在 v2 中看不到。

原因

每条旧对话通过一次 POST /v1/migrations/liveagent-history 导入。前端请求里,source_metadata 会把对话正文再重复两遍,文件快照也会重复,所以请求体积约为对话本身的 3 倍。超过 K-brain 的 64 MiB 上限就返回 413。

修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions