Application Logs

Log Files

[2026-01-24 12:40:59] [DEBUG] Webhook received: {"crqid":"","companyId":"466552","requestedAt":"2026-01-24T12:40:55+05:30","customerNumber":"919810090861","requestId":"","reason":"","eventName":"delivered","uuid":"wamid.HBgMOTE5ODEwMDkwODYxFQIAEhggQUM3RjU5NDE3RUZBQzgyRTdEQkE3QjQ0RTkxRDRDMkYA_hello","integratedNumber":"917596048865","templateName":"","templateLanguage":"","replyMsgId":"","conversationExpTimestamp":"","pluginsource":"","customerName":"Swapan Baidya","contentType":"text","text":"Hello","latitude":"","longitude":"","caption":"","filename":"","url":"","button":"","contacts":"[{\"profile\":{\"name\":\"Swapan Baidya\"},\"wa_id\":\"919810090861\"}]","reaction":"","interactive":"","orders":"","messages":"[{\"from\":\"919810090861\",\"id\":\"wamid.HBgMOTE5ODEwMDkwODYxFQIAEhggQUM3RjU5NDE3RUZBQzgyRTdEQkE3QjQ0RTkxRDRDMkYA\",\"timestamp\":\"1769238652\",\"text\":{\"body\":\"Hello\"},\"type\":\"text\"}]","ts":"2026-01-24T12:40:57+05:30"} [2026-01-24 12:40:59] [DEBUG] Ignoring event: delivered [2026-01-24 12:41:36] [DEBUG] Webhook received: {"crqid":"","companyId":"466552","requestedAt":"2026-01-24T12:41:30+05:30","customerNumber":"919810090861","requestId":"","reason":"","eventName":"delivered","uuid":"wamid.HBgMOTE5ODEwMDkwODYxFQIAEhggQUMwOTEzRDExQzZEQkQ3MjczRkI3OEMwQ0I3NDU0ODUA_hello","integratedNumber":"917596048865","templateName":"","templateLanguage":"","replyMsgId":"","conversationExpTimestamp":"","pluginsource":"","customerName":"Swapan Baidya","contentType":"text","text":"Who am I?","latitude":"","longitude":"","caption":"","filename":"","url":"","button":"","contacts":"[{\"profile\":{\"name\":\"Swapan Baidya\"},\"wa_id\":\"919810090861\"}]","reaction":"","interactive":"","orders":"","messages":"[{\"from\":\"919810090861\",\"id\":\"wamid.HBgMOTE5ODEwMDkwODYxFQIAEhggQUMwOTEzRDExQzZEQkQ3MjczRkI3OEMwQ0I3NDU0ODUA\",\"timestamp\":\"1769238688\",\"text\":{\"body\":\"Who am I?\"},\"type\":\"text\"}]","ts":"2026-01-24T12:41:33+05:30"} [2026-01-24 12:41:36] [DEBUG] Ignoring event: delivered [2026-01-24 12:42:28] [DEBUG] Webhook received: {"crqid":"","companyId":"466552","requestedAt":"2026-01-24T12:42:24+05:30","customerNumber":"919810090861","requestId":"","reason":"","eventName":"delivered","uuid":"wamid.HBgMOTE5ODEwMDkwODYxFQIAEhggQUMzM0ExOTc4MUY2ODJBOTc3QzY0QjA5MDk2MTExMjUA_hello","integratedNumber":"917596048865","templateName":"","templateLanguage":"","replyMsgId":"","conversationExpTimestamp":"","pluginsource":"","customerName":"Swapan Baidya","contentType":"text","text":"Can I ask you any type of questions","latitude":"","longitude":"","caption":"","filename":"","url":"","button":"","contacts":"[{\"profile\":{\"name\":\"Swapan Baidya\"},\"wa_id\":\"919810090861\"}]","reaction":"","interactive":"","orders":"","messages":"[{\"from\":\"919810090861\",\"id\":\"wamid.HBgMOTE5ODEwMDkwODYxFQIAEhggQUMzM0ExOTc4MUY2ODJBOTc3QzY0QjA5MDk2MTExMjUA\",\"timestamp\":\"1769238743\",\"text\":{\"body\":\"Can I ask you any type of questions\"},\"type\":\"text\"}]","ts":"2026-01-24T12:42:26+05:30"} [2026-01-24 12:42:28] [DEBUG] Ignoring event: delivered [2026-01-24 13:42:30] [DEBUG] Webhook received: {"customer_name": "Suvranil Nath", "sender": "919830946010", "integrated_number": "919830432584", "company_id": 466552, "content_type": "text", "received_at": "2026-01-24 08:12:29", "replied_message_id": null, "message_uuid": "wamid.HBgMOTE5ODMwOTQ2MDEwFQIAEhggQUMzQTY5NzUwRkM4RUYwNTMzNUY5QTQ4RjQ5N0Y5RDgA", "direction": 0, "text": "EXPLAIN", "contacts": [{"profile": {"name": "Suvranil Nath"}, "wa_id": "919830946010"}], "messages": [{"from": "919830946010", "id": "wamid.HBgMOTE5ODMwOTQ2MDEwFQIAEhggQUMzQTY5NzUwRkM4RUYwNTMzNUY5QTQ4RjQ5N0Y5RDgA", "timestamp": "1769242347", "text": {"body": "EXPLAIN"}, "type": "text"}], "template_name": null, "template_language": null} [2026-01-24 13:42:30] [INFO] Processing message from 919830946010: EXPLAIN [2026-01-24 13:42:30] [INFO] Sending upload button to 919830946010 [2026-01-24 13:42:30] [DEBUG] MSG91 Sending to: https://api.msg91.com/api/v5/whatsapp/whatsapp-outbound-message/ [2026-01-24 13:42:30] [DEBUG] MSG91 Payload: {"integrated_number":"919830432584","content_type":"interactive","recipient_number":"919830946010","interactive":{"type":"cta_url","body":{"text":"Hello Suvranil Nath! Welcome to Prescription Explainer!\n\nI help you understand your medical prescriptions in simple language.\n\n\ud83d\udcf8 Please upload a CLEAR image for best results.\n\nTap the button below to upload your prescription:"},"action":{"name":"cta_url","parameters":{"display_text":"Upload Prescription","url":"https:\/\/wf1.feliz.health\/upload.php?phone=919830946010&name=Suvranil+Nath"}}}} [2026-01-24 13:42:30] [DEBUG] MSG91 Response [200]: {"status": "success", "hasError": false, "data": {"message_uuid": "89c29f5bae884ea987ef03ecd81c8a8a", "message": "Your request is in process, please check delivery report for status"}, "errors": null} [2026-01-24 13:42:44] [DEBUG] Webhook received: {"crqid":"","companyId":"466552","requestedAt":"2026-01-24T13:42:29+05:30","customerNumber":"919830946010","requestId":"","reason":"","eventName":"delivered","uuid":"wamid.HBgMOTE5ODMwOTQ2MDEwFQIAEhggQUMzQTY5NzUwRkM4RUYwNTMzNUY5QTQ4RjQ5N0Y5RDgA_hello","integratedNumber":"919830432584","templateName":"","templateLanguage":"","replyMsgId":"","conversationExpTimestamp":"","pluginsource":"","customerName":"Suvranil Nath","contentType":"text","text":"EXPLAIN","latitude":"","longitude":"","caption":"","filename":"","url":"","button":"","contacts":"[{\"profile\":{\"name\":\"Suvranil Nath\"},\"wa_id\":\"919830946010\"}]","reaction":"","interactive":"","orders":"","messages":"[{\"from\":\"919830946010\",\"id\":\"wamid.HBgMOTE5ODMwOTQ2MDEwFQIAEhggQUMzQTY5NzUwRkM4RUYwNTMzNUY5QTQ4RjQ5N0Y5RDgA\",\"timestamp\":\"1769242347\",\"text\":{\"body\":\"EXPLAIN\"},\"type\":\"text\"}]","ts":"2026-01-24T13:42:44+05:30"} [2026-01-24 13:42:44] [DEBUG] Ignoring event: delivered [2026-01-24 13:42:45] [DEBUG] Webhook received: {"crqid":"","companyId":"466552","requestedAt":"2026-01-24T13:42:29+05:30","customerNumber":"919830946010","requestId":"","reason":"","eventName":"","uuid":"wamid.HBgMOTE5ODMwOTQ2MDEwFQIAEhggQUMzQTY5NzUwRkM4RUYwNTMzNUY5QTQ4RjQ5N0Y5RDgA_hello","integratedNumber":"919830432584","templateName":"","templateLanguage":"","replyMsgId":"","conversationExpTimestamp":"","pluginsource":"","customerName":"Suvranil Nath","contentType":"text","text":"EXPLAIN","latitude":"","longitude":"","caption":"","filename":"","url":"","button":"","contacts":"[{\"profile\":{\"name\":\"Suvranil Nath\"},\"wa_id\":\"919830946010\"}]","reaction":"","interactive":"","orders":"","messages":"[{\"from\":\"919830946010\",\"id\":\"wamid.HBgMOTE5ODMwOTQ2MDEwFQIAEhggQUMzQTY5NzUwRkM4RUYwNTMzNUY5QTQ4RjQ5N0Y5RDgA\",\"timestamp\":\"1769242347\",\"text\":{\"body\":\"EXPLAIN\"},\"type\":\"text\"}]","ts":"2026-01-24T13:42:44+05:30"} [2026-01-24 13:42:45] [DEBUG] Duplicate message ignored: wamid.HBgMOTE5ODMwOTQ2MDEwFQIAEhggQUMzQTY5NzUwRkM4RUYwNTMzNUY5QTQ4RjQ5N0Y5RDgA [2026-01-24 13:43:25] Upload started - Phone: 919830946010, Lang: en [2026-01-24 13:43:25] File saved: rx_69747f251e6d4.jpg [2026-01-24 13:43:25] Serial: 260124001, Starting OpenAI... [2026-01-24 13:43:51] OpenAI success for 260124001 [2026-01-24 13:43:51] Saved to DB: prescription 56 [2026-01-24 13:44:10] [DEBUG] MSG91 Sending to: https://api.msg91.com/api/v5/whatsapp/whatsapp-outbound-message/ [2026-01-24 13:44:10] [DEBUG] MSG91 Payload: {"integrated_number":"919830432584","content_type":"text","recipient_number":"919830946010","text":"Thank you for using Prescription Explainer! \ud83d\ude4f\n\n\ud83d\udccb *Analyze another prescription?*\nSend: EXPLAIN\n\n\ud83d\udcc2 *View your prescriptions:*\nhttps:\/\/wf1.feliz.health\/my-prescriptions.php?phone=919830946010"} [2026-01-24 13:44:10] [DEBUG] MSG91 Response [200]: {"status": "success", "hasError": false, "data": {"message_uuid": "8c35194ebc74455da6646374b7d154d6", "message": "Your request is in process, please check delivery report for status"}, "errors": null} [2026-01-24 14:28:04] [DEBUG] Webhook received: {"customer_name": "Mouktick Dasgupta", "sender": "919903368417", "integrated_number": "919830432584", "company_id": 466552, "content_type": "text", "received_at": "2026-01-24 08:58:03", "replied_message_id": null, "message_uuid": "wamid.HBgMOTE5OTAzMzY4NDE3FQIAEhggQUNFMjJFMTEwMDdCQUEwQjU2MEFFNjAwRDFCRUJCM0IA", "direction": 0, "text": "Explain", "contacts": [{"profile": {"name": "Mouktick Dasgupta"}, "wa_id": "919903368417"}], "messages": [{"from": "919903368417", "id": "wamid.HBgMOTE5OTAzMzY4NDE3FQIAEhggQUNFMjJFMTEwMDdCQUEwQjU2MEFFNjAwRDFCRUJCM0IA", "timestamp": "1769245080", "text": {"body": "Explain"}, "type": "text"}], "template_name": null, "template_language": null} [2026-01-24 14:28:04] [INFO] Processing message from 919903368417: Explain [2026-01-24 14:28:04] [INFO] Sending upload button to 919903368417 [2026-01-24 14:28:04] [DEBUG] MSG91 Sending to: https://api.msg91.com/api/v5/whatsapp/whatsapp-outbound-message/ [2026-01-24 14:28:04] [DEBUG] MSG91 Payload: {"integrated_number":"919830432584","content_type":"interactive","recipient_number":"919903368417","interactive":{"type":"cta_url","body":{"text":"Hello Mouktick Dasgupta! Welcome to Prescription Explainer!\n\nI help you understand your medical prescriptions in simple language.\n\n\ud83d\udcf8 Please upload a CLEAR image for best results.\n\nTap the button below to upload your prescription:"},"action":{"name":"cta_url","parameters":{"display_text":"Upload Prescription","url":"https:\/\/wf1.feliz.health\/upload.php?phone=919903368417&name=Mouktick+Dasgupta"}}}} [2026-01-24 14:28:04] [DEBUG] MSG91 Response [200]: {"status": "success", "hasError": false, "data": {"message_uuid": "6ec8355808a34eccb777ccff1df61452", "message": "Your request is in process, please check delivery report for status"}, "errors": null} [2026-01-24 14:28:18] [DEBUG] Webhook received: {"crqid":"","companyId":"466552","requestedAt":"2026-01-24T14:28:03+05:30","customerNumber":"919903368417","requestId":"","reason":"","eventName":"","uuid":"wamid.HBgMOTE5OTAzMzY4NDE3FQIAEhggQUNFMjJFMTEwMDdCQUEwQjU2MEFFNjAwRDFCRUJCM0IA_hello","integratedNumber":"919830432584","templateName":"","templateLanguage":"","replyMsgId":"","conversationExpTimestamp":"","pluginsource":"","customerName":"Mouktick Dasgupta","contentType":"text","text":"Explain","latitude":"","longitude":"","caption":"","filename":"","url":"","button":"","contacts":"[{\"profile\":{\"name\":\"Mouktick Dasgupta\"},\"wa_id\":\"919903368417\"}]","reaction":"","interactive":"","orders":"","messages":"[{\"from\":\"919903368417\",\"id\":\"wamid.HBgMOTE5OTAzMzY4NDE3FQIAEhggQUNFMjJFMTEwMDdCQUEwQjU2MEFFNjAwRDFCRUJCM0IA\",\"timestamp\":\"1769245080\",\"text\":{\"body\":\"Explain\"},\"type\":\"text\"}]","ts":"2026-01-24T14:28:17+05:30"} [2026-01-24 14:28:18] [DEBUG] Duplicate message ignored: wamid.HBgMOTE5OTAzMzY4NDE3FQIAEhggQUNFMjJFMTEwMDdCQUEwQjU2MEFFNjAwRDFCRUJCM0IA [2026-01-24 14:28:18] [DEBUG] Webhook received: {"crqid":"","companyId":"466552","requestedAt":"2026-01-24T14:28:03+05:30","customerNumber":"919903368417","requestId":"","reason":"","eventName":"delivered","uuid":"wamid.HBgMOTE5OTAzMzY4NDE3FQIAEhggQUNFMjJFMTEwMDdCQUEwQjU2MEFFNjAwRDFCRUJCM0IA_hello","integratedNumber":"919830432584","templateName":"","templateLanguage":"","replyMsgId":"","conversationExpTimestamp":"","pluginsource":"","customerName":"Mouktick Dasgupta","contentType":"text","text":"Explain","latitude":"","longitude":"","caption":"","filename":"","url":"","button":"","contacts":"[{\"profile\":{\"name\":\"Mouktick Dasgupta\"},\"wa_id\":\"919903368417\"}]","reaction":"","interactive":"","orders":"","messages":"[{\"from\":\"919903368417\",\"id\":\"wamid.HBgMOTE5OTAzMzY4NDE3FQIAEhggQUNFMjJFMTEwMDdCQUEwQjU2MEFFNjAwRDFCRUJCM0IA\",\"timestamp\":\"1769245080\",\"text\":{\"body\":\"Explain\"},\"type\":\"text\"}]","ts":"2026-01-24T14:28:18+05:30"} [2026-01-24 14:28:18] [DEBUG] Ignoring event: delivered

Write Test Log Entry