π Workflow Troubleshooting & Fixes
This document records identified issues within n8n workflows and their corresponding resolutions.
1. common n8n Issuesβ
π΄ Incorrect API Keysβ
- Symptoms:
403 ForbiddenorPermission Deniedwhen updating Supabase from n8n. - Cause: Using an
anonkey instead of aservice_rolekey in the ENV node. - Fix: Replace the key in the workflow ENV node with a genuine
service_rolekey from the Supabase Dashboard.
π‘ Missing Error Handlingβ
- Symptoms: Tasks stuck in
processingindefinitely if the AI call fails. - Cause: Workflow only handles successful (
generated) states. - Fix: Add a failure branch to catch API errors and update the task status to
failedwith a descriptive error message.
2. Key Differentiationβ
Always verify keys at jwt.io:
- Anon Key:
"role": "anon" - Service Role Key:
"role": "service_role"
3. Post-Fix Verificationβ
After updating a workflow, perform these steps:
- Dry Run: Use the
upload_tasks_to_supabase.pyscript with the--dry-runflag. - Batch Check: Confirm
task_batchescounters are incrementing correctly. - Manual Trigger: Run the n8n "Load Batch" workflow manually and inspect the execution log for status transitions.
4. Environment Checklistβ
| Variable | Target Role |
|---|---|
SUPABASE_URL | Endpoint URI |
SUPABASE_SERVICE_ROLE_KEY | service_role |
SUPABASE_ANON_KEY | anon |
Last Updated: 2026-02-24