Why is my code getting executed twice?

Describe the problem/error/question

I have a simple workflow that retrieves an image from url with http node and prints the json/binary in code. I have a few logs, but I am confused why I see duplicate messages for each log?

Console Logs:

Please share your workflow

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @jtoh,

Ran your workflow to replicate but I’m not being able to get the error. On cloud or on self-hosted instance.

Could you let me know a bit more about your setup, see if that sparks some ideas?

I just ran it this morning. I’m no longer seeing the duplicate calls. I have no idea why i’m not seeing it this, but will update this thread if I see it again. Ty!

This seems to be an issue with the frontend websocket listeners. The execution is happening only once, but the frontend code that reacts to websocket messages doesn’t seem to deregister, and every time you navigate away from the canvas and come back, we seem to be setting up new event listeners, while the old ones are still there.

I have created an internal ticket for the respective team to have a look at: N8N-7509

1 Like

Update: We’ve identified the issue, and added a fix for it. It should be included in the next release on Wednesday.

New version [email protected] got released which includes the GitHub PR 10063.