tshoot rag memory leak

This commit is contained in:
2025-10-06 14:42:07 +02:00
parent 3e841d0e42
commit bae86fb5a2
12 changed files with 295 additions and 92 deletions

View File

@@ -345,7 +345,12 @@ async def refresh_token(
expires_in=settings.ACCESS_TOKEN_EXPIRE_MINUTES * 60
)
except HTTPException:
# Re-raise HTTPException without modification
raise
except Exception as e:
# Log the actual error for debugging
logger.error(f"Refresh token error: {str(e)}", exc_info=True)
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Invalid refresh token"