-
Notifications
You must be signed in to change notification settings - Fork 5k
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
ERROR: RemoteProtocolError: API通信遇到错误:peer closed connection without sending complete message body (incomplete chunked read) #3438
Comments
嘿,@A-runaaaa!又见面了,希望这次我们能一起解决新的挑战。 The
To diagnose and fix a As for the The I hope this information helps! If you have any more questions or need further clarification, feel free to ask. Sources
|
如果是代理问题我应该怎么解决@dosu-bot |
Based on the context provided, it seems like you're encountering a
Given the context of your application, specifically the use of FastAPI and asynchronous operations, you might want to particularly focus on how the proxy handles asynchronous requests and chunked responses. Adjusting the As for the specific function of the code at line 138 in the "/home/guanjr/Langchain-Chatchat-master_2024_2/server/chat/file_chat.py" file where the error occurs, it is to create a Here's the relevant code snippet for context: chain = LLMChain(prompt=chat_prompt, llm=model)
# Begin a task that runs in the background.
task = asyncio.create_task(wrap_done(
chain.acall({"context": context, "question": query}),
callback.done),
) This code snippet initializes a For more information, you can refer to the following sources: If you need further assistance, please provide more details about the specific error message and stack trace, as well as any relevant code snippets or configurations. Sources
|
依赖没装对吧 |
请问这种错误,是哪个依赖的问题
…------------------ 原始邮件 ------------------
发件人: "chatchat-space/Langchain-Chatchat" ***@***.***>;
发送时间: 2024年4月3日(星期三) 晚上8:29
***@***.***>;
抄送: "♂润(ง ***@***.******@***.***>;
主题: Re: [chatchat-space/Langchain-Chatchat] ERROR: RemoteProtocolError: API通信遇到错误:peer closed connection without sending complete message body (incomplete chunked read) (Issue #3438)
依赖没装对吧
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
这个问题已经被标记为 |
这个问题已经被自动关闭,因为它被标为 |
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/starlette/applications.py", line 119, in call
await self.middleware_stack(scope, receive, send)
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in call
raise exc
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in call
await self.app(scope, receive, _send)
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/starlette/routing.py", line 762, in call
await self.middleware_stack(scope, receive, send)
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/starlette/routing.py", line 782, in app
await route.handle(scope, receive, send)
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/starlette/routing.py", line 297, in handle
await self.app(scope, receive, send)
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/starlette/routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/starlette/routing.py", line 75, in app
await response(scope, receive, send)
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/sse_starlette/sse.py", line 255, in call
async with anyio.create_task_group() as task_group:
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 597, in aexit
raise exceptions[0]
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/sse_starlette/sse.py", line 258, in wrap
await func()
File "/home/guanjr/miniconda3/envs/KQAP/lib/python3.11/site-packages/sse_starlette/sse.py", line 245, in stream_response
async for data in self.body_iterator:
File "/home/guanjr/Langchain-Chatchat-master_2024_2/server/chat/file_chat.py", line 138, in knowledge_base_chat_iterator
input_msg = History(role="user", content=prompt_template).to_msg_template(False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for History
content
none is not an allowed value (type=type_error.none.not_allowed)
2024-03-20 03:03:43,820 - utils.py[line:197] - ERROR: RemoteProtocolError: API通信遇到错误:peer closed connection without sending complete message body (incomplete chunked read)
The text was updated successfully, but these errors were encountered: