# Error in Mautic Node

**URL:** <https://community.n8n.io/t/error-in-mautic-node/25683>\
**Category:** Questions\
**Tags:** mautic\
**Created:** [April 27, 2023, 8:08pm UTC](https://community.n8n.io/t/error-in-mautic-node/25683 "2023-04-27T20:08:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Neumann](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/martin_neumann/32/7982_2.png) [@Martin\_Neumann](https://community.n8n.io/u/Martin_Neumann)\
**Post date:** [April 27, 2023, 8:08pm UTC](https://community.n8n.io/t/error-in-mautic-node/25683/1 "2023-04-27T20:08:23Z")

</div>

## 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

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [May 2, 2023, 3:04pm UTC](https://community.n8n.io/t/error-in-mautic-node/25683/2 "2023-05-02T15:04:16Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Martin\_Neumann](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/martin_neumann/32/7982_2.png) [@Martin\_Neumann](https://community.n8n.io/u/Martin_Neumann)\
**Post date:** [May 28, 2023, 11:32pm UTC](https://community.n8n.io/t/error-in-mautic-node/25683/3 "2023-05-28T23:32:00Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [May 29, 2023, 5:40am UTC](https://community.n8n.io/t/error-in-mautic-node/25683/4 "2023-05-29T05:40:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Martin\_Neumann](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/martin_neumann/32/7982_2.png) [@Martin\_Neumann](https://community.n8n.io/u/Martin_Neumann)\
**Post date:** [May 29, 2023, 5:54pm UTC](https://community.n8n.io/t/error-in-mautic-node/25683/5 "2023-05-29T17:54:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [May 29, 2023, 7:59pm UTC](https://community.n8n.io/t/error-in-mautic-node/25683/6 "2023-05-29T19:59:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [August 27, 2023, 7:59pm UTC](https://community.n8n.io/t/error-in-mautic-node/25683/7 "2023-08-27T19:59:49Z")

</div>

Closed on August 27, 2023, 7:59pm UTC

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