Zapier integration and HTTPS

Hi everyone. I’m trying to test the official Mautic-Zapier integration (https://zapier.com/developer/invite/51025/5079bbfb98eff7e408aee0bef04ac7f3/) and I see on this page (https://github.com/mautic/mautic-zapier) that SSL is a requirement. My website doesn’t have it and I’m facing the following error during the Test Mautic step:



message: API authorization denied.

code: 401

type: access_denied



API settings and webhook on Mautic are ok. Is my problem the lack of SSL/https? Thank you all.

Hi everyone. I’m trying to test the official Mautic-Zapier integration (https://zapier.com/developer/invite/51025/5079bbfb98eff7e408aee0bef04ac7f3/) and I see on this page (https://github.com/mautic/mautic-zapier) that SSL is a requirement. My website doesn’t have it and I’m facing the following error during the Test Mautic step:

message: API authorization denied.
code: 401
type: access_denied

API settings and webhook on Mautic are ok. Is my problem the lack of SSL/https? Thank you all.

Not using SSL is simply stupid. You can get it for free these days. There is no excuse to avoid it. If you won’t use it, any server or network device in the way can read your username and password in plain text.

That being said, it is not required to use Zapier with the official app. Ensure you have the HTTP Basic Auth enabled in Mautic configuration and double check that your username and password you are filling in are really correct.

@escopecz thanks for your reply. SSL is already set. I was just testing a few things before it goes live. But anyway… I keep havng some troubles with the integration and I’m sharing it here:

  • It’s not possible to delete a Mautic account in the ‘Select Mautic Account’ step. I have one account with old credentials and I can’t remove it and leave only the right one. Boring, but ok.

  • During this same step, every single Mautic account added has successful test even if its credentials are wrong. I got confused because of this. But it’s not a big deal.

My real problem now is that I get successful test only when choosing the ‘Form submitted’ trigger. ‘New contact’ or ‘Contact updated’ for example don’t work for me.

'New contact’: Bargle. We hit an error fetching a contact. :frowning: Error: JSON results array could not be located. [I couldn’t find any related documentation]

‘Contact updated’: If you haven’t yet, go create a brand new updated contact. [I do]; Looking for the updated contact, this might take a sec… [I also updated contacts at this moment] … We could not find the updated contact.

On Mautic side, webhook shows a few #200 responses, but I couldn’t understand why, because I had only two form submitted successful cases so far and six #200 responses.

Thanks for thoughts and help about it.

This is not a Mautic, but a Zapier support question, but here you go: https://zapier.com/help/connected-accounts/

- During this same step, every single Mautic account added has successful test even if its credentials are wrong. I got confused because of this. But it’s not a big deal.

You contradict your first comment where you said you are getting access_denied response. And that happens when you try to log in with wrong credentials. The error message improvements will come in next version.

What Mautic version do you use? I just tested contact update trigger with Gmail Zap and I got the email on contact update.

@escopecz thanks again. I’m currently using v.2.9.2.

@escopecz I figured it out. I was trying to perform a contact update action, but my webhook was set to ‘form submitted’ event. Stupid mistake. New contact didn’t work yet, but I guess it’s something like that too.

I don’t understand how that could have happened. The new official Mautic integration for Zapier you linked at the top creates the webhooks itself. One per every Zap. So you edited those webhooks created by Zapier?

No, I didn’t. I used exactly the webhook URL Zapier gave me for each zap. But I have to create a webhook on Mautic with that URL, right? I created this webhook and at this point Mautic asks for name, description, webhook url AND webhook event. This last option was ‘form submit event’ while I was trying to update a contact for example.

So I tried again the trigger ‘Contact updated’ on Zapier with the webhook event set as ‘Contact updated event’ on Mautic. Success! Then I thought the same problem was occurring with ‘New contact’ trigger. I did the same, but I get still the same error: “Bargle. We hit an error fetching a contact. :frowning: Error: JSON results array could not be located.”.

So by now I have zaps for ‘contact updated’ and ‘form submitted’ triggers working fine and ‘new contact’ still not working.

If Zapier gives you an URL to create a webhook, then you are not using the official integration you linked at the top. Does it say “Mautic 1.0.1”?

Where do I see this version? I didn’t find it. When I click in https://github.com/mautic/mautic-zapier invite link I’m redirected to my Zapier Dashboard. It seems like I already accept the invitation. So I’m assuming I’m using the official integration.

Every time I pass the Mautic account step, there is the Webhook setup step and it says "use this: ". I go to Mautic and create a new webhook with this url. Am I doing something wrong?

It must be some other Mautic integration build by the community. The official Mautic integration will create the webhook for you. Try to create a new Zap and search for “Mautic”. Do you see Mautic 1.0.1 in one of the search results?

@escopecz you were absolutely right. I found the 1.0.1 version and it worked perfectly. My bad. Thank you very much for your time.