修复:所有HTTP请求禁用系统代理,解决本机Clash代理导致心跳和告警上报超时

This commit is contained in:
2026-03-20 22:24:19 +08:00
parent 5049f7b26b
commit d972f6e5fe
2 changed files with 6 additions and 3 deletions

View File

@@ -323,7 +323,8 @@ class EdgeInferenceService:
for url in urls:
try:
resp = requests.post(url, json=payload, timeout=10)
resp = requests.post(url, json=payload, timeout=10,
proxies={"http": None, "https": None})
if resp.status_code == 200:
self._logger.debug(f"[心跳] {url} 上报成功")
else: