[2026-02-09 14:59:05.000] === STARTING PROCESSING SESSION === [2026-02-09 14:59:05.000] PHP Version: 8.4.16 [2026-02-09 14:59:05.000] Memory Limit: 128M [2026-02-09 14:59:05.000] Max Execution Time: 120 [2026-02-09 14:59:05.000] Disabled functions: NONE [2026-02-09 14:59:05.000] Raw body length: 619214 [2026-02-09 14:59:05.000] Provided signature: 4ffad5cef4f14902aa3d... [2026-02-09 14:59:05.000] Expected signature: 4ffad5cef4f14902aa3d... [2026-02-09 14:59:05.000] Signature verified successfully [2026-02-09 14:59:05.000] Payload JSON decoded: SUCCESS [2026-02-09 14:59:05.000] Number of PDFs to process: 1 [2026-02-09 14:59:05.000] --- Processing PDF #1 --- [2026-02-09 14:59:05.000] PDF base64 provided: YES, length: 613612 [2026-02-09 14:59:05.000] PDF bytes decoded: 460209 bytes [2026-02-09 14:59:05.000] Temp PDF written to /tmp/invoice_6989f639dd105.pdf, bytes written: 460209 [2026-02-09 14:59:05.000] Temp PDF exists: YES [2026-02-09 14:59:05.000] Temp PDF size: 460209 bytes [2026-02-09 14:59:05.000] PDF hash: d25657693d7e65a33b04a8552bfe6b854226e1f708772f7c8bcc3337bf36ac4c [2026-02-09 14:59:05.000] Checking database cache for hash: d25657693d7e65a3... [2026-02-09 14:59:05.000] CACHE MISS - Not found in database [2026-02-09 14:59:05.000] Starting PDF processing (not cached) [2026-02-09 14:59:05.000] STEP 1: Quick Smalot parser attempt [2026-02-09 14:59:05.000] Smalot parsing took: 0.08 seconds [2026-02-09 14:59:05.000] Number of pages detected: 8 [2026-02-09 14:59:06.000] Smalot extracted text length: 1881 [2026-02-09 14:59:06.000] Smalot parser SUCCESS - using text extraction [2026-02-09 14:59:06.000] Smalot text preview (first 200 chars): | Data: AI Due Date Extraction: Testing Multilingual Phrasings and Date Formats Test Case – AI Due Date Extraction (Multilingual & Format Variants) 1. Objective Verify that the AI correctly recognises and e [2026-02-09 14:59:06.000] Using Smalot OCR method, text length: 1881 [2026-02-09 14:59:06.000] Attempting OpenAI parsing with smalot OCR [2026-02-09 14:59:06.000] run_openai_parse called, text length: 1881 [2026-02-09 14:59:06.000] OpenAI input preview: | Data: AI Due Date Extraction: Testing Multilingual Phrasings and Date Formats Test Case – AI Due Date Extraction (Multilingual & Format Variants) 1. Objective Verify that the AI correctly recognises and e... [2026-02-09 14:59:06.000] Making OpenAI API call... [2026-02-09 14:59:07.000] OpenAI HTTP response code: 200 [2026-02-09 14:59:07.000] OpenAI response received, length: 957 [2026-02-09 14:59:07.000] OpenAI content extracted, length: 128 [2026-02-09 14:59:07.000] OpenAI parsed JSON result | Data: {"invoice_number":null,"amount":null,"due_date":"2026-03-15","invoice_date":null,"currency":null} [2026-02-09 14:59:07.000] Final AI result | Data: {"invoice_number":null,"amount":null,"due_date":"2026-03-15","invoice_date":null,"currency":null} [2026-02-09 14:59:07.000] normalize_amount called with: | Data: 0.00 [2026-02-09 14:59:07.000] normalize_amount result: | Data: 0.00 [2026-02-09 14:59:07.000] normalize_date_iso called with: [2026-02-09 14:59:07.000] Final extracted values | Data: {"invoice_number":"","amount":"0.00","due_date":"2026-03-15","invoice_date":null,"currency":""} [2026-02-09 14:59:07.000] Attempting to save PDF to: /var/www/sandbox/pdfs/invoice_4ba64eec0878332f1344755e7a904ede.pdf [2026-02-09 14:59:07.000] PDF saved successfully to /var/www/sandbox/pdfs/invoice_4ba64eec0878332f1344755e7a904ede.pdf [2026-02-09 14:59:07.000] Database INSERT SUCCESS [2026-02-09 14:59:07.000] Adding to invoices array | Data: {"uuid":"4ba64eec0878332f1344755e7a904ede","invoice_number":"","amount":"0.00","due_date":"2026-03-15","invoice_date":null,"currency":"","cached":false,"ocr_method":"smalot","local_ocr_failed":false} [2026-02-09 14:59:07.000] --- Finished processing PDF #1 --- [2026-02-09 14:59:07.000] === TOTAL PROCESSING TIME: 1990.3ms === [2026-02-09 14:59:07.000] Total invoices processed: 1 [2026-02-09 14:59:07.000] Response sent, size: 214 bytes