From bb072af130f3d914ebf9ce7072b442d81d7dbdd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Thu, 9 Apr 2026 11:37:52 -0300 Subject: [PATCH] chore: add debug logging for auth token --- src/services/n8n.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/services/n8n.service.ts b/src/services/n8n.service.ts index b8c50f8..4a98502 100644 --- a/src/services/n8n.service.ts +++ b/src/services/n8n.service.ts @@ -19,6 +19,9 @@ export const sendToN8n = async (data: any): Promise => { if (n8nAuthToken) { // Send exactly what the user typed in the environment variable headers['Authorization'] = n8nAuthToken; + console.log(`DEBUG: Sending Authorization header starting with: ${n8nAuthToken.substring(0, 8)}...`); + } else { + console.log(`DEBUG: No N8N_AUTH_TOKEN found in environment variables. Sending request WITHOUT Authorization header!`); } const response = await axios.post(n8nWebhookUrl, data, { headers });