This commit is contained in:
yumoqing 2025-10-14 15:33:48 +08:00
parent 064f82dec6
commit a06fd181ad

View File

@ -160,7 +160,8 @@ class StreamHttpClient:
async for chunk in response.content.iter_chunked(chunk_size): async for chunk in response.content.iter_chunked(chunk_size):
yield chunk yield chunk
except aiohttp.ClientResponseError as e: except aiohttp.ClientResponseError as e:
debug(f"❌ HTTP {response.status}: {response.reason}, {response.text()}") txt = await response.text()
debug(f"❌ HTTP {response.status}: {response.reason}, {txt}")
raise e raise e
except Exception as e: except Exception as e:
debug(f"❌ HTTP {response.status}: {response.reason}") debug(f"❌ HTTP {response.status}: {response.reason}")