Langchain-Chatchat icon indicating copy to clipboard operation
Langchain-Chatchat copied to clipboard

[BUG] vue webui无法加载知识库

Open syusama opened this issue 1 year ago • 0 comments

拉取了最新的代码,分别运行了后端api和前端web,点击知识库,始终只能显示simple,无法加载知识库

前端报错 GET /local_doc_qa/list_files HTTP/1.1" 500 Internal Server Error

后端报错 File "C:\Users\cddev\AppData\Roaming\Python\Python310\site-packages\starlette\middleware\errors.py", line 162, in __call__ await self.app(scope, receive, _send) File "C:\Users\cddev\AppData\Roaming\Python\Python310\site-packages\starlette\middleware\exceptions.py", line 79, in __call__ raise exc File "C:\Users\cddev\AppData\Roaming\Python\Python310\site-packages\starlette\middleware\exceptions.py", line 68, in __call__ await self.app(scope, receive, sender) File "C:\Users\cddev\AppData\Roaming\Python\Python310\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in __call__ raise e File "C:\Users\cddev\AppData\Roaming\Python\Python310\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__ await self.app(scope, receive, send) File "C:\Users\cddev\AppData\Roaming\Python\Python310\site-packages\starlette\routing.py", line 718, in __call__ await route.handle(scope, receive, send) File "C:\Users\cddev\AppData\Roaming\Python\Python310\site-packages\starlette\routing.py", line 276, in handle await self.app(scope, receive, send) File "C:\Users\cddev\AppData\Roaming\Python\Python310\site-packages\starlette\routing.py", line 66, in app response = await func(request) File "C:\Users\cddev\AppData\Roaming\Python\Python310\site-packages\fastapi\routing.py", line 237, in app raw_response = await run_endpoint_function( File "C:\Users\cddev\AppData\Roaming\Python\Python310\site-packages\fastapi\routing.py", line 163, in run_endpoint_function return await dependant.call(**values) File "D:\projects\langchain-ChatGLM_1\langchain-ChatGLM\api.py", line 168, in list_docs local_doc_folder = get_folder_path(knowledge_base_id) File "D:\projects\langchain-ChatGLM_1\langchain-ChatGLM\api.py", line 83, in get_folder_path return os.path.join(KB_ROOT_PATH, local_doc_id, "content") File "D:\Anaconda\envs\langchain-ChatGLM-env\lib\ntpath.py", line 143, in join genericpath._check_arg_types('join', path, *paths) File "D:\Anaconda\envs\langchain-ChatGLM-env\lib\genericpath.py", line 152, in _check_arg_types raise TypeError(f'{funcname}() argument must be str, bytes, or ' TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType'

syusama avatar Jun 16 '23 08:06 syusama