From 585757e5875f6228ab75322fe16ea8c16c7ddfd7 Mon Sep 17 00:00:00 2001 From: fatelei Date: Mon, 11 May 2026 17:58:44 +0800 Subject: [PATCH] chore: add some debug log --- api/services/enterprise/base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/services/enterprise/base.py b/api/services/enterprise/base.py index b37a87a1f8..cbae8eb380 100644 --- a/api/services/enterprise/base.py +++ b/api/services/enterprise/base.py @@ -157,7 +157,8 @@ class EnterpriseRequest(BaseRequest): if account_id: inner_headers[INNER_ACCOUNT_ID_HEADER] = account_id url = f"{cls.rbac_base_url}{endpoint}" - mounts = cls._build_mounts() + logger.info(f"Sending request to {url}") + # mounts = cls._build_mounts() try: traceparent = generate_traceparent_header() @@ -167,7 +168,7 @@ class EnterpriseRequest(BaseRequest): except Exception: logger.debug("Failed to generate traceparent header", exc_info=True) - with httpx.Client(mounts=mounts) as client: + with httpx.Client() as client: request_kwargs: dict[str, Any] = {"json": json, "params": params, "headers": {"Content-Type": "application/json", cls.secret_key_header: cls.secret_key, **inner_headers}} if timeout is not None: request_kwargs["timeout"] = timeout