From 9a1ac16f19832454053f859dd83e8672ccbb4c63 Mon Sep 17 00:00:00 2001 From: 16337 <1633794139@qq.com> Date: Wed, 11 Mar 2026 09:40:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=88=AA=E5=9B=BE?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=E7=A6=81=E7=94=A8=E7=B3=BB=E7=BB=9F=E4=BB=A3?= =?UTF-8?q?=E7=90=86=EF=BC=8C=E8=A7=A3=E5=86=B3502=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit requests.post回调WVP时被本地代理(127.0.0.1:7897)拦截导致502, 添加proxies=None绕过系统代理直连WVP。 Co-Authored-By: Claude Opus 4.6 --- core/screenshot_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/screenshot_handler.py b/core/screenshot_handler.py index 92421ea..ce503bc 100644 --- a/core/screenshot_handler.py +++ b/core/screenshot_handler.py @@ -326,7 +326,8 @@ class ScreenshotHandler: if callback_url: try: url = callback_url.rstrip("/") + SNAP_CALLBACK_PATH - resp = requests.post(url, json=body, timeout=SNAP_CALLBACK_TIMEOUT) + resp = requests.post(url, json=body, timeout=SNAP_CALLBACK_TIMEOUT, + proxies={"http": None, "https": None}) if resp.status_code < 300: logger.info("[截图] HTTP 回调成功: request_id=%s", request_id) return