Mautic Community Forums

Zapier to Mautic Troubles

Hello,



First off, thank you very much for your Mautic to Zapier solution.



I was hoping you could give me some pointers to get my setup working.



I have a self hosted (Amazon AWS) Mautic instance that I’m trying to connect to Zapier.



I have followed your guide and keep getting 404 errors which I’m not sure how to debug.

I’m using a Bitnami Mautic installation if that makes a difference? I know that there are some folder structure differences.



Logs:

When looking at the apache2 logs I can see that there is a GET message but nothing else.



Zapier:

Invite:

https://zapier.com/developer/invite/43460/9a4d44ae0e3aff741b647237a2a6883e/



Return:

https://zapier.com/dashboard/auth/oauth/return/App42154API/



I would really appreciate your help!

Thanks,

Andrew.

Hello,

First off, thank you very much for your Mautic to Zapier solution.

I was hoping you could give me some pointers to get my setup working.

I have a self hosted (Amazon AWS) Mautic instance that I’m trying to connect to Zapier.

I have followed your guide and keep getting 404 errors which I’m not sure how to debug.
I’m using a Bitnami Mautic installation if that makes a difference? I know that there are some folder structure differences.

Logs:
When looking at the apache2 logs I can see that there is a GET message but nothing else.

Zapier:
Invite:
https://zapier.com/developer/invite/43460/9a4d44ae0e3aff741b647237a2a6883e/

Return:
https://zapier.com/dashboard/auth/oauth/return/App42154API/

I would really appreciate your help!
Thanks,
Andrew.

404 errors when setting up the integration is normally caused by not enabling the API. The things to check are,

Just to double-check, is the 404 a Mautic styled error?

  1. Is API enabled “On” in Settings > Configuration > API Settings
  2. When in Settings > API Credentials, does the dropdown show OAuth 1 or OAuth 2, the credentials need to be setup as using OAuth 2.

If that doesn’t help, what version of Mautic are you using?

Zac

Hi Zac,

Thanks for the reply!

The 404’s are Mautic pages, yes. With the little blue guy.

  1. Yes
  2. Confirmed OAuth 2.

I am using Mautic v2.2.1.

Hey Zac,

Here’s what is in the app/log file:

[2016-10-27 11:06:29] mautic.ERROR: Deprecation: The SymfonyComponentTranslationTranslator::getMessages method is deprecated since version 2.8 and will be removed in 3.0. Use TranslatorBagInterface::getCatalogue() method instead. - in file /opt/bitnami/apps/mautic/htdocs/vendor/symfony/translation/Translator.php - at line 275 [] []
[2016-10-27 11:10:20] mautic.ERROR: Uncaught PHP Exception SymfonyComponentHttpKernelExceptionNotFoundHttpException: “Requested URL not found: //oauth/v2/authorize?response_type=code&client_id=%7B%7Bpublic_key%7D%7D&redirect_uri=https%3A//zapier.com/dashboard/auth/oauth/return/App43460API/&state=1477559345.5217099” at /opt/bitnami/apps/mautic/htdocs/app/bundles/CoreBundle/Controller/CommonController.php line 465 {“exception”:"[object] (Symfony\Component\HttpKernel\Exception\NotFoundHttpException(code: 0): Requested URL not found: //oauth/v2/authorize?response_type=code&client_id=%7B%7Bpublic_key%7D%7D&redirect_uri=https%3A//zapier.com/dashboard/auth/oauth/return/App43460API/&state=1477559345.5217099 at /opt/bitnami/apps/mautic/htdocs/app/bundles/CoreBundle/Controller/CommonController.php:465)"}