chore: add debug logging for auth token
All checks were successful
Build and Deploy / build-and-push (push) Successful in 41s
All checks were successful
Build and Deploy / build-and-push (push) Successful in 41s
This commit is contained in:
@@ -19,6 +19,9 @@ export const sendToN8n = async (data: any): Promise<void> => {
|
|||||||
if (n8nAuthToken) {
|
if (n8nAuthToken) {
|
||||||
// Send exactly what the user typed in the environment variable
|
// Send exactly what the user typed in the environment variable
|
||||||
headers['Authorization'] = n8nAuthToken;
|
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 });
|
const response = await axios.post(n8nWebhookUrl, data, { headers });
|
||||||
|
|||||||
Reference in New Issue
Block a user