Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

handling unstructured time out

matthew-heartfula57696f9d823
diff --git a/screenpipe-vision/src/core.rs b/screenpipe-vision/src/core.rs
index 2f53bfffe..6c43b4fc2 100644
--- a/screenpipe-vision/src/core.rs
+++ b/screenpipe-vision/src/core.rs
@@ -242,7 +242,16 @@ pub async fn process_ocr_task(
let (text, data_output, json_output) = match &*ocr_engine {
OcrEngine::Unstructured => {
debug!("Cloud Unstructured OCR");
- perform_ocr_cloud(&image_arc).await
+ match perform_ocr_cloud(&image_arc).await {
+ Ok(result) => result,
+ Err(e) => {
+ error!("Error performing cloud OCR: {}", e);
+ return Err(std::io::Error::new(
+ std::io::ErrorKind::Other,
+ format!("Error performing cloud OCR: {}", e),
+ ));
+ }
+ }
}
OcrEngine::Tesseract => {
debug!("Local Tesseract OCR");