Problem: The ERROR trigger doesn’t always activate 100% of the time, which is strange because some workflows, consistently the same ones, are still able to activate the ERROR trigger. We are using the 1.22.6 self-hosted version, but the issue was already present in version 1.21.1.
I attempted to reconstruct the logic from the ground up with two new workflows:
An error workflow named “error bis” containing only the ERROR trigger (along with a webhook for activation).
An error workflow to try to trigger errors:
I confirm that I have connected workflow settings errors to “error bis”:
I wonder if there is maybe a misunderstanding how it works, because I just tested and for me everything works correctly.
So first important to mention that Error Workflows do not have to get activated, so the Webhook-Node is not required. All that is needed is that the Workflow is set es Error Workflow and it contains an Error Trigger Node.
Error Workflows do only get triggered in production executions, not manual executions. Do you test via an active workflow via the production URL?
I removed the webhook from the 1st workflow in my request (the “error” workflow) and deactivated it so we’re on the same page.
Tests I ran were in production: I’m triggering the 2nd workflow (containing the error node) from another tool to be sure it behaves as expected in production. But it doesn’t work.
The weird thing is this setup had been working for a year before I encountered this issue.
I have just been testing this as well and I have not been able to reproduce it either. Looking at the executions screenshot you have shared that looks like it is for a workflow but I can’t see which workflow. Do you have your error workflow set to log successful executions?
Since it doesn’t appear to be from the current version, could it be from our self-hosted setup? What environment settings should we check in this case?
I have just done some more testing on our internal n8n instance which is running on 1.24.0 with queue mode and Postgres and I am still not able to reproduce this.
It could be that this is something we have fixed and an upgrade will resolve it, If upgrading doesn’t resolve it having a compose file or similar that reproduces the issue would be very handy.
please open a new topic for this. As this error is not related to this topic. It will also help getting eyes on it, as this topic was pretty much solved. and help others in the future that might have the same issue.