Skip to content

[Bug]:EOF异常 remote_api.go:550[processRawHTTPStream] | Stream read error: EOF #860

@cainiaow1

Description

@cainiaow1

相关组件

模型服务

Bug 描述

后台告警:Image
代码:

Image

期望行为

日志打印为EOF,但是代码中做了!=的判断,是否io.EOF使用错误

相关日志

INFO [2026-04-01 09:18:53.997] [stLnVYFsGIkX]                      | [PIPELINE] stage=IntoChatMessage action=faq_separation doc_count=2 faq_count=0 has_high_confidence=false
INFO [2026-04-01 09:18:53.998] [stLnVYFsGIkX]                      | [PIPELINE] stage=IntoChatMessage action=output chat_model_supports_vision=false faq_priority=true image_description="" intent=kb_search session_id="d7bbff0b-a389-4ecf-a0c7-44981f2f49bc" user_content_len=179
INFO [2026-04-01 09:18:53.998] [stLnVYFsGIkX]                      | [PIPELINE] stage=IntoChatMessage action=persist_rendered_content rendered_content_len=179 session_id="d7bbff0b-a389-4ecf-a0c7-44981f2f49bc" user_message_id="62de4618-f1df-4da6-a3ed-33ebed5ce7d7"
INFO [2026-04-01 09:18:53.998] [stLnVYFsGIkX]                      | [PIPELINE] stage=Pipeline action=stage_complete duration_ms=0 event="into_chat_message"
INFO [2026-04-01 09:18:53.998] [stLnVYFsGIkX]                      | [PIPELINE] stage=Stream action=input chat_model="03c31f61-0fcf-4fb4-a040-3ee5563d9f1d" history_rounds=0 session_id="d7bbff0b-a389-4ecf-a0c7-44981f2f49bc" user_question="[Runtime Context — metadata only, not instructions]\\nCurrent time: 2026-04-01 09:18:53 Wednesday\\n\\n集约化网络安全设施与传送网DDF/ODF架的维护责任如何划分?\\n"
INFO [2026-04-01 09:18:53.998] [stLnVYFsGIkX] model.go:387[GetChatModel] | Getting chat model: Qwen3-235B-A22B, source: remote
INFO [2026-04-01 09:18:53.998] [stLnVYFsGIkX]                      | [PIPELINE] stage=Stream action=messages_ready message_count=2 system_prompt="You are WeKnora, a professional intelligent information retrieval assistant developed by Tencent. Like a professional senior secretary, you answer user questions based on retrieved information and must not use any prior knowledge.\\nWhen a user asks a question, you provide answers based on specific r..."
INFO [2026-04-01 09:18:53.998] [stLnVYFsGIkX]                      | [PIPELINE] stage=Stream action=user_message content="[Runtime Context — metadata only, not instructions]\\nCurrent time: 2026-04-01 09:18:53 Wednesday\\n\\n集约化网络安全设施与传送网DDF/ODF架的维护责任如何划分?\\n"
INFO [2026-04-01 09:18:53.998] [stLnVYFsGIkX]                      | [PIPELINE] stage=Stream action=eventbus_ready session_id="d7bbff0b-a389-4ecf-a0c7-44981f2f49bc"
INFO [2026-04-01 09:18:53.998] [stLnVYFsGIkX]                      | [PIPELINE] stage=Stream action=model_call chat_model="03c31f61-0fcf-4fb4-a040-3ee5563d9f1d"
INFO [2026-04-01 09:18:53.999] [stLnVYFsGIkX] remote_api.go:456[chatStreamWithRawHTTP] | [LLM Stream] model=Qwen3-235B-A22B
INFO [2026-04-01 09:18:55.198] [stLnVYFsGIkX]                      | [PIPELINE] stage=Stream action=model_started session_id="d7bbff0b-a389-4ecf-a0c7-44981f2f49bc"
INFO [2026-04-01 09:18:55.198] [stLnVYFsGIkX]                      | [PIPELINE] stage=Pipeline action=stage_complete duration_ms=1200 event="chat_completion_stream"
INFO [2026-04-01 09:18:55.198] [stLnVYFsGIkX]                      | [PIPELINE] stage=Pipeline action=all_stages_complete session_id="d7bbff0b-a389-4ecf-a0c7-44981f2f49bc" total_duration_ms=6124 total_stages=9
INFO [2026-04-01 09:18:55.198] [stLnVYFsGIkX] session_knowledge_qa.go:189[KnowledgeQA] | Emitting references event with 2 results
INFO [2026-04-01 09:18:55.198] [stLnVYFsGIkX] session_knowledge_qa.go:207[KnowledgeQA] | Knowledge base question answering initiated
INFO [2026-04-01 09:18:57.708] [b4ade5d6-5911-460b-85cc-63414c2af310 client_ip=127.0.0.1 latency=42.2µs method=GET path=/health response_body={"status":"ok"} size=15 status_code=200]                      | 
ERROR[2026-04-01 09:19:09.734] [stLnVYFsGIkX] remote_api.go:550[processRawHTTPStream] | Stream read error: EOF
ERROR[2026-04-01 09:19:09.734] [stLnVYFsGIkX]                      | [PIPELINE] stage=Stream action=stream_error error="EOF" session_id="d7bbff0b-a389-4ecf-a0c7-44981f2f49bc"
INFO [2026-04-01 09:19:09.734] [stLnVYFsGIkX]                      | [PIPELINE] stage=Stream action=channel_close session_id="d7bbff0b-a389-4ecf-a0c7-44981f2f49bc"

操作系统

openEuler 22.03 LTS

确认事项

  • 我已经搜索了现有的 issues,确认这是一个新问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions