[2026-02-09 13:27:04.000] === STARTING PROCESSING SESSION === [2026-02-09 13:27:04.000] PHP Version: 8.4.16 [2026-02-09 13:27:04.000] Memory Limit: 128M [2026-02-09 13:27:04.000] Max Execution Time: 120 [2026-02-09 13:27:04.000] Disabled functions: NONE [2026-02-09 13:27:04.000] Raw body length: 1004693 [2026-02-09 13:27:04.000] Provided signature: 46769aaa2a64a4324982... [2026-02-09 13:27:04.000] Expected signature: 46769aaa2a64a4324982... [2026-02-09 13:27:04.000] Signature verified successfully [2026-02-09 13:27:04.000] Payload JSON decoded: SUCCESS [2026-02-09 13:27:04.000] Number of PDFs to process: 1 [2026-02-09 13:27:04.000] --- Processing PDF #1 --- [2026-02-09 13:27:04.000] PDF base64 provided: YES, length: 979128 [2026-02-09 13:27:04.000] PDF bytes decoded: 734345 bytes [2026-02-09 13:27:04.000] Temp PDF written to /tmp/invoice_6989e0a8697de.pdf, bytes written: 734345 [2026-02-09 13:27:04.000] Temp PDF exists: YES [2026-02-09 13:27:04.000] Temp PDF size: 734345 bytes [2026-02-09 13:27:04.000] PDF hash: dfd3277cd2a32f6135a765f48a5190726368a96e6ff807e6c4aa32cb20f36d5c [2026-02-09 13:27:04.000] Checking database cache for hash: dfd3277cd2a32f61... [2026-02-09 13:27:04.000] CACHE MISS - Not found in database [2026-02-09 13:27:04.000] Starting PDF processing (not cached) [2026-02-09 13:27:04.000] STEP 1: Quick Smalot parser attempt [2026-02-09 13:27:04.000] Smalot parsing took: 0.02 seconds [2026-02-09 13:27:04.000] Number of pages detected: 6 [2026-02-09 13:27:04.000] Smalot extracted text length: 901 [2026-02-09 13:27:04.000] Smalot parser SUCCESS - using text extraction [2026-02-09 13:27:04.000] Smalot text preview (first 200 chars): | Data: Zentrale: Föhrengasse 2, 8501 Lieboch Lazarettgürtel 81, 8020 Graz Name: ib-g engineering & consulting GmbH Datum: 01.12.2025 Adresse:Föhrengasse 2 RE-Zeitraum:Okt PLZ: 8501 Lieboch [2026-02-09 13:27:04.000] Using Smalot OCR method, text length: 901 [2026-02-09 13:27:04.000] Attempting OpenAI parsing with smalot OCR [2026-02-09 13:27:04.000] run_openai_parse called, text length: 901 [2026-02-09 13:27:04.000] OpenAI input preview: | Data: Zentrale: Föhrengasse 2, 8501 Lieboch Lazarettgürtel 81, 8020 Graz Name: ib-g engineering & consulting GmbH Datum: 01.12.2025 Adresse:Föhrengasse 2 RE-Zeitraum:Okt PLZ: 8501 Lieboch... [2026-02-09 13:27:04.000] Making OpenAI API call... [2026-02-09 13:27:05.000] OpenAI HTTP response code: 200 [2026-02-09 13:27:05.000] OpenAI response received, length: 990 [2026-02-09 13:27:05.000] OpenAI content extracted, length: 150 [2026-02-09 13:27:05.000] OpenAI parsed JSON result | Data: {"invoice_number":"2025-0442","amount":"12178.87","due_date":"2026-02-28","invoice_date":"2025-12-01","currency":"EUR"} [2026-02-09 13:27:05.000] Final AI result | Data: {"invoice_number":"2025-0442","amount":"12178.87","due_date":"2026-02-28","invoice_date":"2025-12-01","currency":"EUR"} [2026-02-09 13:27:05.000] normalize_amount called with: | Data: 12178.87 [2026-02-09 13:27:05.000] normalize_amount result: | Data: 12178.87 [2026-02-09 13:27:05.000] normalize_date_iso called with: | Data: 2025-12-01 [2026-02-09 13:27:05.000] Final extracted values | Data: {"invoice_number":"2025-0442","amount":"12178.87","due_date":"2026-02-28","invoice_date":"2025-12-01","currency":"EUR"} [2026-02-09 13:27:05.000] Attempting to save PDF to: /var/www/html/pdfs/invoice_b9641d87d03d6642977c8b30b2b06721.pdf [2026-02-09 13:27:05.000] PDF saved successfully to /var/www/html/pdfs/invoice_b9641d87d03d6642977c8b30b2b06721.pdf [2026-02-09 13:27:05.000] Database INSERT SUCCESS [2026-02-09 13:27:05.000] Adding to invoices array | Data: {"uuid":"b9641d87d03d6642977c8b30b2b06721","invoice_number":"2025-0442","amount":"12178.87","due_date":"2026-02-28","invoice_date":"2025-12-01","currency":"EUR","cached":false,"ocr_method":"smalot","local_ocr_failed":false} [2026-02-09 13:27:05.000] --- Finished processing PDF #1 --- [2026-02-09 13:27:05.000] === TOTAL PROCESSING TIME: 1234.44ms === [2026-02-09 13:27:05.000] Total invoices processed: 1 [2026-02-09 13:27:05.000] Response sent, size: 238 bytes