🐛 fix(http_utils): 增强错误处理,记录请求失败的详细信息

This commit is contained in:
HibiKier 2025-10-16 17:23:26 +08:00
parent 07be73c1b7
commit 249c8fe3ed

View File

@ -262,6 +262,12 @@ class AsyncHttpx:
"AsyncHttpx:FallbackExecutor",
)
return result
except HTTPStatusError as e:
exceptions.append(e)
logger.debug(
f"请求失败: {url} {e.response.status_code} {e.response.text}",
"AsyncHttpx:FallbackExecutor",
)
except Exception as e:
exceptions.append(e)
if url != url_list[-1]: