Mautic Community Forums

Webhook error

Your software
My Mautic version is: 2.15.1
My PHP version is: 5.6.40

Your problem
Hi,

I have just setup a Mautic installation using Amazon SES/SNS for sending emails. I’m able to send e-mails without any problems. However I keep on getting errors with the webhook.

On Amazon SNS I have subscribed to the topic https://mysite.com/mautic/mailer/amazon/callback and got it confirmed. The notifications from the SES side is also configured for bounces and complaints. But when I test it from Mautic>Webhooks I got an “Error Detected message” with the following details:

Bad Request var mauticBasePath = ‘/mautic’; var mauticBaseUrl = ‘/mautic/’; var mauticAjaxUrl = ‘/mautic/s/ajax’; var mauticAjaxCsrf =

These errors are showing in the log:
[2019-12-01 19:37:48] mautic.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\HttpException: “Key ‘Type’ not found in payload " at /home/mysite/public_html/mautic/app/bundles/EmailBundle/Swiftmailer/Transport/AmazonTransport.php line 116 {“exception”:”[object] (Symfony\Component\HttpKernel\Exception\HttpException(code: 0): Key ‘Type’ not found in payload at /home/mysite/public_html/mautic/app/bundles/EmailBundle/Swiftmailer/Transport/AmazonTransport.php:116)"}

PS: “mysite” is shown as placeholder only.

Steps I have tried to fix the problem: ?

Have a look here :https://github.com/mautic/mautic/issues/7743

Something about RAW messages