You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Uwazi receives OCR results with metadata extraction enabled, the following error occurs:
TypeError: Cannot read properties of undefined (reading 'template')
at /uwazi/app/api/suggestions/eventListeners.ts:138:10
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 0)
at async EventsBus.emit (uwazi/app/api/eventsbus/EventsBus.ts:19:7)
at async Object.save (uwazi/app/api/files/files.ts:49:7)
at async processPDF (uwazi/app/api/files/processDocument.ts:14:18)
at async processFiles (uwazi/app/api/services/ocr/OcrManager.ts:107:22)
at async uwazi/app/api/services/ocr/OcrManager.ts:138:7
at async Object.processResults (uwazi/app/api/services/ocr/OcrManager.ts:126:3)
at async TaskManager.checkForResults (uwazi/app/api/services/tasksmanager/TaskManager.ts:119:9)
at async Repeater.start (uwazi/app/api/utils/Repeater.js:24:7)
To Reproduce
Start Uwazi with
yarn blank state
export EXTERNAL_SERVICES=true
yarn hot
When Uwazi receives OCR results with metadata extraction enabled, the following error occurs:
TypeError: Cannot read properties of undefined (reading 'template')
at /uwazi/app/api/suggestions/eventListeners.ts:138:10
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 0)
at async EventsBus.emit (uwazi/app/api/eventsbus/EventsBus.ts:19:7)
at async Object.save (uwazi/app/api/files/files.ts:49:7)
at async processPDF (uwazi/app/api/files/processDocument.ts:14:18)
at async processFiles (uwazi/app/api/services/ocr/OcrManager.ts:107:22)
at async uwazi/app/api/services/ocr/OcrManager.ts:138:7
at async Object.processResults (uwazi/app/api/services/ocr/OcrManager.ts:126:3)
at async TaskManager.checkForResults (uwazi/app/api/services/tasksmanager/TaskManager.ts:119:9)
at async Repeater.start (uwazi/app/api/utils/Repeater.js:24:7)
To Reproduce
The text was updated successfully, but these errors were encountered: