Skip to content

为什么知识库管理中调用文件后无法实现向量库,且报错为缺少json #5318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Dreamer37 opened this issue Apr 26, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@Dreamer37
Copy link

2025-04-26 21:27:47.348 | ERROR | chatchat.webui_pages.utils:post:87 - ReadTimeout: error when post /knowledge_base/upload_docs: timed out
2025-04-26 21:27:47.349 | ERROR | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2025-04-26 21:29:02.393 | ERROR | chatchat.webui_pages.utils:post:87 - ReadTimeout: error when post /knowledge_base/delete_docs: timed out
2025-04-26 21:29:02.395 | ERROR | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2025-04-26 21:29:06.135 | ERROR | chatchat.webui_pages.utils:post:87 - ReadTimeout: error when post /knowledge_base/delete_docs: timed out
2025-04-26 21:29:06.136 | ERROR | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2025-04-26 21:29:31.493 | ERROR | chatchat.webui_pages.utils:post:87 - ReadTimeout: error when post /knowledge_base/delete_docs: timed out
2025-04-26 21:30:18.508 | ERROR | chatchat.webui_pages.utils:post:87 - ReadTimeout: error when post /knowledge_base/upload_docs: timed out
2025-04-26 21:30:18.510 | ERROR | chatchat.webui_pages.utils:to_json:233 - AttributeError: API未能返回正确的JSON。'NoneType' object has no attribute 'json'
2025-04-26 21:31:15.898 | ERROR | chatchat.webui_pages.utils:post:87 - ReadTimeout: error when post /knowledge_base/update_docs: timed out

@Dreamer37 Dreamer37 added the enhancement New feature or request label Apr 26, 2025
Copy link

dosubot bot commented Apr 26, 2025

Hello @Dreamer37! I'm Dosu, your friendly bot here to assist you with bugs, answer questions, and help you become a contributor. I'm here to help while you wait for a human maintainer. Let's tackle your issue together!

I found similar threads that might be helpful:

  1. An open issue discusses similar errors, but no solution was found in the comments [1].
  2. A closed issue suggests checking the size of the JSON file being uploaded to ensure it does not exceed the web UI's file size limit. It also recommends verifying network and server configurations to support large file uploads. Additionally, after uploading the knowledge base file, explicitly call the recreate_vector_store endpoint to vectorize your documents [2].

For the "ReadTimeout" and "ConnectError" errors, you can try increasing the httpx_default_timeout setting in the server_config to extend the timeout duration [3].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant