-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
联系方式
MaxKB 版本
问题描述
fetch("http://localhost:3000/api/dataset/8247a95a-fbd2-11ee-862c-12ae5ded608b/document/_bach", {
"headers": {
"accept": "application/json, text/plain, /",
"accept-language": "zh-CN,zh;q=0.9,en;q=0.8",
"authorization": ":1rwcwH:sFyPjbaWlgwcuyV-Yy_gCnJv2N2HunScacyfkuSQiSQ",
"content-type": "application/json",
"sec-ch-ua": ""Google Chrome";v="123", "Not:A-Brand";v="8", "Chromium";v="123"",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": ""macOS"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin"
},
"referrer": "http://localhost:3000/ui/dataset/upload?id=8247a95a-fbd2-11ee-862c-12ae5ded608b",
"referrerPolicy": "strict-origin-when-cross-origin",
"body": "xxxxxx(文件
pumpkin_book.pdf
见附件)",
"method": "POST",
"mode": "cors",
"credentials": "include"
});
重现步骤
期待的正确结果
No response
相关日志输出
[{'paragraphs': [{}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}, {}, {'content': [ErrorDetail(string='Null characters are not allowed.', code='null_characters_not_allowed')]}, {}]}]
附加信息
开始导入的上一个接口http://localhost:3000/api/dataset/document/split
,split_model.py的get_level_block()方法里这段lstrip(level_content_list[level_content_index]['content'])会解析出
1
m0
X
x∈X0
ϕ(x)
#T
ϕ (xj)
= m0
m
X
i=1
m
X
j=1
αiαj
"
1
m0
X
x∈X0
ϕ (xi)T ϕ(x)
这样的内容,但是他们不属于我原文件内容。