From 6655476fd4d2b6ae06c9da2c26f918b25f7b015a Mon Sep 17 00:00:00 2001 From: "2569718930@qq.com" <2569718930@qq.com> Date: Fri, 15 May 2026 03:13:30 +0800 Subject: [PATCH] =?UTF-8?q?AMSC=20SSL=20=E7=A1=AC=E7=BC=96=E7=A0=81=20veri?= =?UTF-8?q?fy=3DFalse=EF=BC=8C=E8=B7=B3=E8=BF=87=E8=AF=81=E4=B9=A6?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F=E4=BE=9D?= =?UTF-8?q?=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/data_collection/amsc_awos_sources.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/data_collection/amsc_awos_sources.py b/src/data_collection/amsc_awos_sources.py index 55d85c1f..43a091c1 100644 --- a/src/data_collection/amsc_awos_sources.py +++ b/src/data_collection/amsc_awos_sources.py @@ -191,9 +191,7 @@ class AmscAwosSourceMixin: return headers def _http_get_json(self, url: str, *, headers: Optional[Dict[str, str]] = None) -> Optional[Dict[str, Any]]: - verify = os.getenv("POLYWEATHER_AMSC_SSL_VERIFY", "true").strip().lower() not in {"0", "false", "no"} - logger.info("AMSC AWOS _http_get_json verify={} url={}", verify, str(url)[:80]) - with httpx.Client(verify=verify) as client: + with httpx.Client(verify=False) as client: response = client.get(url, headers=headers, timeout=getattr(self, "timeout", 10.0)) response.raise_for_status() try: