New enterprise feature
This commit is contained in:
@@ -205,7 +205,18 @@ class BaseServiceClient(ABC):
|
||||
full_endpoint = f"{base_path}/{endpoint.lstrip('/')}"
|
||||
|
||||
url = urljoin(self.gateway_url, full_endpoint)
|
||||
|
||||
|
||||
# Debug logging for URL construction
|
||||
logger.debug(
|
||||
"Making service request",
|
||||
service=self.service_name,
|
||||
method=method,
|
||||
url=url,
|
||||
tenant_id=tenant_id,
|
||||
endpoint=endpoint,
|
||||
params=params
|
||||
)
|
||||
|
||||
# Make request with retries
|
||||
for attempt in range(self.retries + 1):
|
||||
try:
|
||||
@@ -240,7 +251,14 @@ class BaseServiceClient(ABC):
|
||||
logger.error("Authentication failed after retry")
|
||||
return None
|
||||
elif response.status_code == 404:
|
||||
logger.warning(f"Endpoint not found: {url}")
|
||||
logger.warning(
|
||||
"Endpoint not found",
|
||||
url=url,
|
||||
service=self.service_name,
|
||||
endpoint=endpoint,
|
||||
constructed_endpoint=full_endpoint,
|
||||
tenant_id=tenant_id
|
||||
)
|
||||
return None
|
||||
else:
|
||||
error_detail = "Unknown error"
|
||||
|
||||
Reference in New Issue
Block a user