Error in Mautic Node

Describe the problem/error/question

Getting frequent errors in the Mautic node. Even running a retry does not resolve the error.

What is the error message (if any)?

There are 2 different messages I am getting:
Error: Bad request - please check your parameters
Stack:
NodeApiError: Bad request - please check your parameters
at Object.mauticApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Mautic/GenericFunctions.js:37:15)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Mautic/Mautic.node.js:653:44)
at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:653:28)
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:592:53

Some other times I get:
Error: Cannot convert undefined or null to object
Stack:
TypeError: Cannot convert undefined or null to object
at Function.values ()
at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Mautic/Mautic.node.js:658:51)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:653:28)
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:592:53

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • **n8n version: 0.224.4
  • **Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): queue
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: debian

Hi @Martin_Neumann, I am sorry you’re having trouble. Seeing this happens frequently (but not always) I wonder if this depends on your specific input data. Can you confirm which data exactly your webhook node is passing on when running into these errors?

I got it resolved by setting up a new n8n instance and renewing the credentials. But it is really strange. When I migrate my Mautic to a different VPS, I almost always have some problems to get it work with n8n. Even resubmitting the Oauth authorization or creating a new credential in Mautic does not resolve it. Sometimes I manage to resolve it by deleting the credential in n8n and creating a new credential. And seems that others had the same problem. Is it possible that something gets messed up in the credentials when you change the IP of the Mautic instance?

Hey @Martin_Neumann,

That is possible, creating a new credential / oauth app in Mautic should solve the issue though if the client id / client secret changes during migration though.

unfortunately no. I had to delete the credential in n8n and define a new one, and then update all the workflows. That is normally the way to get it back working. Defining a new credential in Mautic is not resolving the issue after doing a Mautic migration.

Recreating the credential would do it as well if the new instance isn’t able to handle the token for whatever reason. It is a bit odd but sounds like something that could be expected.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.