diff --git a/core/routes/documents.py b/core/routes/documents.py index b96019da..fd011f1f 100644 --- a/core/routes/documents.py +++ b/core/routes/documents.py @@ -288,7 +288,8 @@ async def get_document_by_filename( raise HTTPException(status_code=404, detail=f"Document with filename '{filename}' not found") return doc except HTTPException as e: - logger.error(f"Error getting document by filename: {e}") + if e.status_code >= 500: + logger.error(f"Error getting document by filename: {e}") raise e diff --git a/core/services/ingestion_service.py b/core/services/ingestion_service.py index 886eb461..69a385f4 100644 --- a/core/services/ingestion_service.py +++ b/core/services/ingestion_service.py @@ -1623,7 +1623,7 @@ def _convert_office_to_images( ], capture_output=True, text=True, - timeout=90, + timeout=300, ) if result.returncode != 0: