From cf88b23749187b9a31406925d3f9e966fc4c566b Mon Sep 17 00:00:00 2001 From: Alvin Tang <104285249+alvinttang@users.noreply.github.com> Date: Tue, 10 Mar 2026 22:22:40 +0800 Subject: [PATCH] fix: check HTTP status in batch read_file to prevent silent failures (#36397) Signed-off-by: gambletan Co-authored-by: gambletan Co-authored-by: Claude Opus 4.6 --- vllm/entrypoints/openai/run_batch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vllm/entrypoints/openai/run_batch.py b/vllm/entrypoints/openai/run_batch.py index c5f2faede..d4121e710 100644 --- a/vllm/entrypoints/openai/run_batch.py +++ b/vllm/entrypoints/openai/run_batch.py @@ -320,6 +320,7 @@ class BatchProgressTracker: async def read_file(path_or_url: str) -> str: if path_or_url.startswith("http://") or path_or_url.startswith("https://"): async with aiohttp.ClientSession() as session, session.get(path_or_url) as resp: + resp.raise_for_status() return await resp.text() else: with open(path_or_url, encoding="utf-8") as f: