### Contact Information _No response_ ### MaxKB Version v2.4.1、v2.10.5 ### Problem Description 定义一个工作流: <img width="1700" height="956" alt="Image" src="https://github.com/user-attachments/assets/6513d49a-9335-497f-9303-5fc4793628fa" /> 测试: <img width="1700" height="956" alt="Image" src="https://github.com/user-attachments/assets/3bd3bec4-39aa-4e35-9f4d-90e0a3fda3e9" /> 函数换一下: <img width="1700" height="956" alt="Image" src="https://github.com/user-attachments/assets/b7f80a64-1963-412a-85e8-1bbe762b768c" /> <img width="1305" height="668" alt="Image" src="https://github.com/user-attachments/assets/b02c921f-8f21-4fa9-b675-130457465a49" /> 再换成这个:报错 <img width="1587" height="875" alt="Image" src="https://github.com/user-attachments/assets/0a1c51a7-fb1c-454e-9895-cac403591516" /> 再想办法绕过去: <img width="1700" height="956" alt="Image" src="https://github.com/user-attachments/assets/41b53525-c6b8-482f-8356-6041f45c7c92" /> <img width="1345" height="613" alt="Image" src="https://github.com/user-attachments/assets/88370645-ef80-4642-93f4-fafe0f6b833c" /> 以上几种情况均为2.10.5报错 PostgreSQL 内部 C 语言字符串以 \0 作为结束标记,因此文本字段禁止原生保存 ASCII NUL (0x00) 字符。只要字符串里存在 \0,执行 INSERT / UPDATE 就抛出该异常。 上面的异常估计是后面版本改了,再早期版本2.4.2中的报错是: PostgreSQL text fields cannot contain NUL (0x00) bytes 在工具中也是: <img width="1545" height="921" alt="Image" src="https://github.com/user-attachments/assets/fe2cd292-8c2c-4c45-b8ef-f7ce58dc77d3" /> 能否在工作流、知识库、工具等工作流对外输出提供服务的地方,对这些空字符做一下过滤?使得存在也不报错?(比如之前过滤掉再入库) 否则函数、工作流某个节点等地方从上游有个这种字符过来,或者是在某个节点弄了这个字符,导致用户使用起来报错,偶然又不报。 手动分析也不合理,目前复现出来的工作流有100多个节点,不可能手动分析的,如果做不到,能不能加一个日志记录一下,到底哪个细节节点(比如执行到xx工具)出来的? ### Steps to Reproduce - ### The expected correct result _No response_ ### Related log output ```shell ``` ### Additional Information _No response_
Activity
Shenguobin0102 commentedon Aug 21, 2026
感谢反馈,后续版本修复。
fix: If there are empty characters in the output content of the intel…
fix: If there are empty characters in the output content of the intel…
Shenguobin0102 commentedon Sep 4, 2026
已修复,请更新版本