例行检查
你的版本
问题描述, 日志截图,配置文件等
知识库配置mineru为增强pdf的底层服务,在预览和开始上传阶段均报错:Api response error: /api/core/dataset/file/getPreviewChunks, Unprocessable Entity
{
message: 'Request failed with status code 422',
stack: 'AxiosError: Request failed with status code 422\n' +
' at settle (file:///app/node_modules/.pnpm/axios@1.8.3/node_modules/axios/lib/core/settle.js:19:12)\n' +
' at IncomingMessage.handleStreamEnd (file:///app/node_modules/.pnpm/axios@1.8.3/node_modules/axios/lib/adapters/http.js:599:11)\n' +
' at IncomingMessage.emit (node:events:531:35)\n' +
' at endReadableNT (node:internal/streams/readable:1696:12)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n' +
' at Axios.request (file:///app/node_modules/.pnpm/axios@1.8.3/node_modules/axios/lib/core/Axios.js:45:41)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async b (/app/projects/app/.next/server/chunks/66648.js:1:10021)\n' +
' at async /app/projects/app/.next/server/chunks/66648.js:1:13177\n' +
' at async b (/app/projects/app/.next/server/chunks/66648.js:1:13151)\n' +
' at async _ (/app/projects/app/.next/server/chunks/66648.js:1:7406)\n' +
' at async h (/app/projects/app/.next/server/chunks/16845.js:6:21048)\n' +
' at async h (/app/projects/app/.next/server/pages/api/core/dataset/file/getPreviewChunks.js:1:10073)\n' +
' at async /app/projects/app/.next/server/pages/api/common/system/getInitData.js:1:5383\n' +
' at async K (/app/node_modules/.pnpm/next@14.2.25_@babel+core@7.26.10_react-dom@18.3.1_react@18.3.1__react@18.3.1_sass@1.85.1/node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js:20:16881)',
config: {
headers: Object [AxiosHeaders] {
Accept: 'application/json, text/plain, /',
'Content-Type': 'multipart/form-data; boundary=--------------------------366025098179351345442932',
Authorization: undefined,
'User-Agent': 'axios/1.8.3',
'Content-Length': '1963891',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
url: 'http://192.168.0.136:8000/file_parse',
data: v {
_overheadLength: 155,
_valueLength: 1963680,
_valuesToMeasure: [],
writable: false,
readable: true,
dataSize: 0,
maxDataSize: 2097152,
pauseStreams: true,
_released: true,
_streams: [],
_currentStream: null,
_insideLoop: false,
_pendingNext: false,
_boundary: '--------------------------366025098179351345442932',
_events: [Object: null prototype],
_eventsCount: 3
}
},
response: { status: 422, statusText: 'Unprocessable Entity' }
}
复现步骤
预期结果
相关截图
例行检查
你的版本
问题描述, 日志截图,配置文件等
知识库配置mineru为增强pdf的底层服务,在预览和开始上传阶段均报错:Api response error: /api/core/dataset/file/getPreviewChunks, Unprocessable Entity
{
message: 'Request failed with status code 422',
stack: 'AxiosError: Request failed with status code 422\n' +
' at settle (file:///app/node_modules/.pnpm/axios@1.8.3/node_modules/axios/lib/core/settle.js:19:12)\n' +
' at IncomingMessage.handleStreamEnd (file:///app/node_modules/.pnpm/axios@1.8.3/node_modules/axios/lib/adapters/http.js:599:11)\n' +
' at IncomingMessage.emit (node:events:531:35)\n' +
' at endReadableNT (node:internal/streams/readable:1696:12)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n' +
' at Axios.request (file:///app/node_modules/.pnpm/axios@1.8.3/node_modules/axios/lib/core/Axios.js:45:41)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async b (/app/projects/app/.next/server/chunks/66648.js:1:10021)\n' +
' at async /app/projects/app/.next/server/chunks/66648.js:1:13177\n' +
' at async b (/app/projects/app/.next/server/chunks/66648.js:1:13151)\n' +
' at async _ (/app/projects/app/.next/server/chunks/66648.js:1:7406)\n' +
' at async h (/app/projects/app/.next/server/chunks/16845.js:6:21048)\n' +
' at async h (/app/projects/app/.next/server/pages/api/core/dataset/file/getPreviewChunks.js:1:10073)\n' +
' at async /app/projects/app/.next/server/pages/api/common/system/getInitData.js:1:5383\n' +
' at async K (/app/node_modules/.pnpm/next@14.2.25_@babel+core@7.26.10_react-dom@18.3.1_react@18.3.1__react@18.3.1_sass@1.85.1/node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js:20:16881)',
config: {
headers: Object [AxiosHeaders] {
Accept: 'application/json, text/plain, /',
'Content-Type': 'multipart/form-data; boundary=--------------------------366025098179351345442932',
Authorization: undefined,
'User-Agent': 'axios/1.8.3',
'Content-Length': '1963891',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
url: 'http://192.168.0.136:8000/file_parse',
data: v {
_overheadLength: 155,
_valueLength: 1963680,
_valuesToMeasure: [],
writable: false,
readable: true,
dataSize: 0,
maxDataSize: 2097152,
pauseStreams: true,
_released: true,
_streams: [],
_currentStream: null,
_insideLoop: false,
_pendingNext: false,
_boundary: '--------------------------366025098179351345442932',
_events: [Object: null prototype],
_eventsCount: 3
}
},
response: { status: 422, statusText: 'Unprocessable Entity' }
}
复现步骤
预期结果
相关截图