The problem was in the whatsapp API… All right now… What a scare…
When running the workflow in test, everything works. But when running in production with the workflow active, after the last node, the webhook fires again without stopping in a loop. It shouldn’t, after the end of the stream it should stop.
There are no error messages, just the flow runs again, causing failure.
Please share the workflow
(Select the nodes and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow respectively)
Share the output returned by the last node
Information on your n8n setup
- Mysql e Bubble
- Running n8n via npm
Welcome to the community.
Are you adding records to bubble?
And or you then triggering your workflow with a webhook when a new record is created?
Or something similar.
Yes… everything works fine…
But when I activate the workflow in production, the webhook receives a request, executes the noś and ends. The problem is that when finishing the last node, the webhook fires again, and it shouldn’t, thus generating an error in the flow.
The webhook is triggered through a whatsapp message, then it is verified if the user exists in a local mysql database, if yes, a message is presented to the client with some options. So far OK, but without receiving a new message, the webhook triggers alone and treats the message that was sent to the client as the one who triggered it… But this only occurs in Production, if I’m manually executing the flows, it works perfectly.