REFACTOR API gateway fix 4

This commit is contained in:
Urtzi Alfaro
2025-07-26 20:14:17 +02:00
parent 6176d5c4d8
commit 735f8c233c
2 changed files with 1 additions and 13 deletions

View File

@@ -180,18 +180,6 @@ async def _proxy_request(request: Request, target_path: str, service_url: str):
content=content
)
except httpx.TimeoutError:
logger.error(f"Timeout calling {service_url}{target_path}")
raise HTTPException(
status_code=504,
detail=f"Service timeout"
)
except httpx.RequestError as e:
logger.error(f"Request error calling {service_url}{target_path}: {e}")
raise HTTPException(
status_code=503,
detail=f"Service unavailable"
)
except Exception as e:
logger.error(f"Unexpected error proxying to {service_url}{target_path}: {e}")
raise HTTPException(