Your software
My Mautic version is: 5.2.1
My PHP version is: 8.1.31
My Database type and version is: MariaDb 10.5.27
Your problem
My problem is: I’m trying to authenticate from n8n into Mautic. I have no problems authenticating to Mautic 4.4, either with OAUTH2 or with basic authentication. However, when I call my Mautic 5.2.1 instance (different subdomain, private/public keys, etc), the call is unsuccessful. If I call with OAUTH2, Mautic requests my username and password, and then asks if I want to allow N8N to connect to my account. However, it then hangs. If I try connecting with basic authentication, the call is made to attempt authentication, but it just keeps spinning. In both cases, eventually the call times out.
These errors are showing in the log:
Steps I have tried to fix the problem: I’ve tried both OAUTH2 and basic authentication. Both fail.
I’ve tried a few more configurations. For starters, I have a Mautic4 instance on its own server; I am able to access this from my docker-based n8n via basic authentication or oauth2. If I create a Mautic5 instance on that same docker server, the docker-based n8n instance can not access it via basic authentication or oauth2. I’ve created a new n8n instance on a different server using docker. From that instance, I can authenticate to Mautic5 using basic authentication, but not oauth2.
It works on my side with Mautic 5.2.1 and n8n 1.72.1, it can only work with both a proper web socket proxy in front of the n8n container and a non-buggy web navigator with web socket proxy (Safari, Chrome). Using Firefox it should work.
I figured out the issue. When Linode marketplace installs docker, it did not open port 443. Opening that port was all that it took to address the problem:
UFW allow 443