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 });