Block 1 - Error Trigger
- Type / Role
- n8n-nodes-base.errorTrigger - errorTrigger
- Config choices
- Version 1
This workflow is provided as-is. Please review and test before using in production.
Log errors and avoid sending too many emails Use case Most of the time, it’s necessary to log all errors that occur. However, in some cases, a scheduled task or service consuming excessive resource...
n8n-nodes-base.errortrigger, n8n-nodes-base.postgres, n8n-nodes-base.stickynote, n8n-nodes-base.emailsend, n8n-nodes-base.pushover, n8n-nodes-base.manualtrigger, n8n-nodes-base.executeworkflow, n8n-nodes-base.executeworkflowtrigger
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Davi Saranszky Mesquita.
Original n8n.io sourceMost of the time, it’s necessary to log all errors that occur. However, in some cases, a scheduled task or service consuming excessive resources might trigger a surge of errors.
To address this, we can log all errors but limit alerts to a maximum of one notification every 5 minutes.
This workflow can be configured to receive error events, or you can integrate it before your own error-handling logic.
If used as the primary error handler, note that this flow will only add a database log entry and take no further action. You’ll need to add your own alerts (e.g., email or push notifications). Below is an example of a notification setup I prefer to use.
At the end, there’s an error cleanup option. This feature is particularly useful in development environments.
If you already have an error-handling workflow, you can call this one as a sub-workflow. Its final steps include cleanup logic to reset the execution state and terminate the workflow.
Verify all Postgres nodes and credentials when using the 'Error Handling Sample'
You can set this workflow as a sub-workflow within your existing error-handling setup.
Alternatively, you can add the "Error Handling Sample" at the end of this workflow, which sends email and push notifications.
Configuration Requirements:
⚠️ You must create a database table for this to work!
DDL of this sample:
create table p1gq6ljdsam3x1m."N8Err" ( id serial primary key, created_at timestamp, updated_at timestamp, created_by varchar, updated_by varchar, nc_order numeric, title text, "URL" text, "Stack" text, json json, "Message" text, "LastNode" text );
alter table p1gq6ljdsam3x1m."N8Err" owner to postgres;
create index "N8Err_order_idx" on p1gq6ljdsam3x1m."N8Err" (nc_order);
by Davi Saranszky Mesquita https://www.linkedin.com/in/mesquitadavi/
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Error handling system with PostgreSQL logging and rate-limited notifications |
|---|---|
| Complexity | advanced |
| Nodes | 16 |
| Categories | DevOps |
| Author | Davi Saranszky Mesquita |
| Published | 05 May 2025 |
Use the JSON export at /data/workflows/3882/3882.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Log errors and avoid sending too many emails Use case Most of the time, it’s necessary to log all errors that occur. However, in some cases, a scheduled task or service consuming excessive resource...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps use case.