Hi everyone,
I’ve encountered a significant issue while using the Message to Model node in n8n, which had an HTTP Request tool attached to it. Unfortunately, the tool responded with a 404 error, which triggered an endless loop in the node. This resulted in a massive number of API requests being sent to OpenAI, leading to a bill of $300 for just 30 minutes of this accidental loop.
The most concerning part is that even after I disabled the node and the entire workflow, the requests from the n8n servers continued to run. When I enabled the workflow again, the requests persisted, causing additional charges.
I’m seeking advice on the following:
- Why did this happen? How can an error response like a 404 cause such a loop in the Message to Model node?
- How can I prevent this in the future? Are there any safeguards I can implement to avoid infinite loops and excessive API calls, especially in cases of unexpected errors?
- How can I stop these background processes? Even after disabling the node and workflow, the queries continued. What steps can I take to ensure that all processes are fully stopped to prevent further charges?
This seems like incorrect behavior in the n8n OpenAI Message to Model node, and I’m worried about what could happen if this issue persists for longer periods. Any insights or advice would be greatly appreciated.
Thank you!