labring / FastGPT

FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, and visual AI workflow orchestration, letting you easily develop and deploy complex question-answering systems without the need for extensive setup or configuration.
https://tryfastgpt.ai
Other
17.23k stars 4.61k forks source link

当输入框有一些特殊字符时频繁弹框错误提示 #1840

Closed mwnu closed 3 months ago

mwnu commented 3 months ago

例行检查

你的版本

问题描述, 日志截图 像是什么正则表达式错误:

[Info] 2024-06-25 07:02:48 Request start /api/core/chat/inputGuide/query 
[Error] 2024-06-25 07:02:48 Api response error: /api/core/chat/inputGuide/query, Invalid regular expression: /一个sql语句是这样的:

INSERT INTO github_project( d/: Unterminated group { message: 'Invalid regular expression: /一个sql语句是这样的:\n' + '\n' + 'INSERT INTO github_project(\n' + ' d/: Unterminated group', stack: 'SyntaxError: Invalid regular expression: /一个sql语句是这样的:\n' + '\n' + 'INSERT INTO github_project(\n' + ' d/: Unterminated group\n' + ' at RegExp ()\n' + ' at d (/app/projects/app/.next/server/pages/api/core/chat/inputGuide/query.js:1:9860)\n' + ' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' + ' at async /app/projects/app/.next/server/pages/api/v1/chat/completions.js:1:5672\n' + ' at async K (/app/nodemodules/.pnpm/next@14.2.3@babel+core@7.24.4_react-dom@18.3.1_react@18.3.1_sass@1.58.3/node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js:20:16853)\n' + ' at async U.render (/app/nodemodules/.pnpm/next@14.2.3@babel+core@7.24.4_react-dom@18.3.1_react@18.3.1_sass@1.58.3/node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js:20:17492)\n' + ' at async NextNodeServer.runApi (/app/nodemodules/.pnpm/next@14.2.3@babel+core@7.24.4_react-dom@18.3.1_react@18.3.1_sass@1.58.3/node_modules/next/dist/server/next-server.js:600:9)\n' + ' at async NextNodeServer.handleCatchallRenderRequest (/app/nodemodules/.pnpm/next@14.2.3@babel+core@7.24.4_react-dom@18.3.1_react@18.3.1_sass@1.58.3/node_modules/next/dist/server/next-server.js:269:37)\n' + ' at async NextNodeServer.handleRequestImpl (/app/nodemodules/.pnpm/next@14.2.3@babel+core@7.24.4_react-dom@18.3.1_react@18.3.1_sass@1.58.3/node_modules/next/dist/server/base-server.js:816:17)\n' + ' at async invokeRender (/app/nodemodules/.pnpm/next@14.2.3@babel+core@7.24.4_react-dom@18.3.1_react@18.3.1_sass@1.58.3/node_modules/next/dist/server/lib/router-server.js:174:21)' } [Info] 2024-06-25 07:02:49 Request start /api/core/chat/inputGuide/query

相关截图

image

c121914yu commented 3 months ago

新版本已经修复了