[Bug]: /api/v1/dify/retrieval resets the connection (502 / “Reached max retries”) because build_error_result sets HTTP status to RetCode.ARG
![[Bug]: /api/v1/dify/retrieval resets the connection (502 / "Reached max retries") because build_error_result sets HTTP status to RetCode.ARG](https://www.chat-gpts.plus/wp-content/uploads/2026/11/16208-b69fbe48-768x403.jpg)
当 Dify 把 RAGFlow 数据集接入为 External Knowledge API 时,Dify 会发送一个不带请求体的 POST 请求到 /api/v1/dify/retrieval,导致连接被重置(502;在 Dify 日志中表现为 Reached max retries)。优先检查




![[Installation]: Bug / Enhancement][Blackwell HGX B300] Pre-flight check for nvcc/ninja before multi-TB shard load & graceful fallback for NV](https://www.chat-gpts.plus/wp-content/uploads/2026/11/66922-634fb78d-768x403.jpg)



![[Bug]: 502 undefine error](https://www.chat-gpts.plus/wp-content/uploads/2026/11/13025-608e3d8d-768x403.jpg)