# Error sending notification webhook: 400

**URL:** <https://forum.ansible.com/t/error-sending-notification-webhook-400/37013>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [August 19, 2022, 5:48pm UTC](https://forum.ansible.com/t/error-sending-notification-webhook-400/37013 "2022-08-19T17:48:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafael\_Silva](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@Rafael\_Silva](https://forum.ansible.com/u/Rafael_Silva)\
**Post date:** [August 19, 2022, 5:48pm UTC](https://forum.ansible.com/t/error-sending-notification-webhook-400/37013/1 "2022-08-19T17:48:08Z")

</div>

ENVIRONMENT

- AWX version: 21.4.0
- AWX install method: operator 0.26.0
- AWX deployment target: k3s + ( [awx-on-k3s](https://github.com/kurokobo/awx-on-k3s) )
- Operating System: redhat enterprise linux 8
- Web Browser: google chrome  
Hello team, I am configuring notifications and I have the following error

If anyone can help I would be grateful!!

**Error:**

2022-08-19 16:24:43,099 ERROR [1958b9c0e44443878f0aeb1e8f6ab487] awx.main.notifications.mattermost\_backend Error sending notification mattermost: 400  
2022-08-19 16:24:43,100 ERROR [1958b9c0e44443878f0aeb1e8f6ab487] awx.main.tasks.system Send Notification Failed Error sending notification mattermost: 400  
Traceback (most recent call last):  
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/tasks/system.py”, line 290, in send\_notifications  
sent = notification.notification\_template.send(notification.subject, notification.body)  
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/models/notifications.py”, line 185, in send  
return backend\_obj.send\_messages([notification\_obj])  
File “/var/lib/awx/venv/awx/lib64/python3.9/site-packages/awx/main/notifications/mattermost\_backend.py”, line 49, in send\_messages  
raise Exception(smart\_str(\_(“Error sending notification mattermost: {}”).format(r.status\_code)))  
Exception: Error sending notification mattermost: 400

Thanks, Team!

> **(attachments)**
>
> ![Screenshot from 2022-08-19 14-43-17.png](https://us1.discourse-cdn.com/ansible/original/2X/3/3bf6e8347fe78d0a68247e2ae456514f930b2c55.png)

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [August 22, 2022, 9:18pm UTC](https://forum.ansible.com/t/error-sending-notification-webhook-400/37013/2 "2022-08-22T21:18:52Z")

</div>

It looks like you are using a google chat API endpoint. Is that intentional? I’m not sure the body of the message we generate for mattermost will be compatible with google chat.

-The AWX Team

---

<div class="post-metadata">

**Author:** ![Rafael\_Silva](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@Rafael\_Silva](https://forum.ansible.com/u/Rafael_Silva)\
**Post date:** [August 23, 2022, 1:12pm UTC](https://forum.ansible.com/t/error-sending-notification-webhook-400/37013/3 "2022-08-23T13:12:56Z")

</div>

Hi, yes and intentional.  
I have ansible tower with the same configuration and it’s working.

But the same error happens if I use the webhook

---

<div class="post-metadata">

**Author:** ![Rafael\_Silva](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@Rafael\_Silva](https://forum.ansible.com/u/Rafael_Silva)\
**Post date:** [August 23, 2022, 1:14pm UTC](https://forum.ansible.com/t/error-sending-notification-webhook-400/37013/4 "2022-08-23T13:14:15Z")

</div>

Could it be a certificate issue?

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [August 24, 2022, 6:20pm UTC](https://forum.ansible.com/t/error-sending-notification-webhook-400/37013/5 "2022-08-24T18:20:20Z")

</div>

Hi,  
If it was a certificate issue you wouldn’t be getting a 400 error.  
What versions do you have that are working (and what version of AWX is not working)?  
Thanks,  
AWX Team
