已关闭
上下文超长场景下,未能正确返回错误码,proxy server返回200 #143
ds_13571877104创建于  8月4日关闭于  8月14日
ds_13571877104
8月4日 创建
2026-08-04 12:55:37,850 - httpx - INFO - HTTP Request: POST http://x.x.x.x:8000/v1/chat/completions "HTTP/1.1 400 Bad Request"
2026-08-04 12:55:37,851 - __main__ - WARNING - Decoder stream attempt 1 failed for /v1/chat/completions: Client error '400 Bad Request' for url 'http://x.x.x.x:8000/v1/chat/completions'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400
2026-08-04 12:55:38,444 - httpx - INFO - HTTP Request: POST http://x.x.x.x:8000/v1/chat/completions "HTTP/1.1 400 Bad Request"
2026-08-04 12:55:38,445 - __main__ - WARNING - Decoder stream attempt 2 failed for /v1/chat/completions: Client error '400 Bad Request' for url 'http://x.x.x.x:8000/v1/chat/completions'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400
2026-08-04 12:55:39,049 - httpx - INFO - HTTP Request: POST http://x.x.x.x:8000/v1/chat/completions "HTTP/1.1 400 Bad Request"
2026-08-04 12:55:39,050 - __main__ - WARNING - Decoder stream attempt 3 failed for /v1/chat/completions: Client error '400 Bad Request' for url 'http://x.x.x.x:8000/v1/chat/completions'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400
2026-08-04 12:55:39,050 - __main__ - ERROR - Decoder failed after 3 attempts streaming to /v1/chat/completions.
2026-08-04 12:55:39,050 - __main__ - ERROR - Error streaming from decoder http://x.x.x.x:8000 for request 53a929c8-791d-4f63-acb3-2e447fed5cb6: Client error '400 Bad Request' for url 'http://x.x.x.x:8000/v1/chat/completions'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400. The aborted request will be recorded for KV release.
curl -X POST http://xxxxx:8000/v1/chat/completions -H "Content-Type: application/json" -d @payload.json -vvvv
Note: Unnecessary use of -X or --request, POST is already inferred.
* Uses proxy env variable no_proxy == '127.0.0.1,localhost,*.huawei.com '
*   Trying xxxxx:8000...
* Connected to xxx (xxxx) port 8000 (#0)
> POST /v1/chat/completions HTTP/1.1
> Host: xxx:8000
> User-Agent: curl/7.79.1
> Accept: */*
> Content-Type: application/json
> Content-Length: 483708
> 
* We are completely uploaded and fine
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< date: Tue, 04 Aug 2026 12:55:35 GMT
< server: uvicorn
< content-type: application/json
< Transfer-Encoding: chunked
< 
* Connection #0 to host xxx left intact
likedislike
openFuyao-botopenFuyao-bot成员
8月4日 添加了label:sig/sig-ai-inference
openFuyao-bot
openFuyao-bot成员
8月4日 评论:

欢迎来到 openFuyao 社区

Hey @ds_13571877104 , 感谢你对社区的贡献.

机器人使用手册

有关指令的使用,可以点击 此处 查看详情。开发人员可以在每个PR或Issue下方评论特定指令来触发机器人任务。

联系指引

有疑问可以联系 SIG: sig-ai-inference ,
维护者是: @foxbit, @regandy ,
审核者是: @ShiroChen, @piamposer-li, @qinwenzh .

likedislike
Mmazifan成员
8月4日 关联了pull request:fix(proxy-server): propagate backend HTTP errors
zhengqinwenZZZzhengqinwenZZZ成员
8月6日 添加了label:bug
zhengqinwenZZZzhengqinwenZZZ成员
8月12日 将 ZifanMa 设为负责人
zhengqinwenZZZzhengqinwenZZZ成员
8月12日 关联了里程碑:v26.09
zhengqinwenZZZzhengqinwenZZZ成员
8月12日 关联了看板:openFuyao - v26.09问题单
Mmazifan成员
8月14日 issue状态由 开启 改变为 待测试
Dds_13571877104
8月14日 issue状态由 待测试 改变为 已完成
Dds_13571877104
8月14日 关闭了 issue