Error sending notification webhook: 400

268 views
Skip to first unread message

Rafael Silva

unread,
Aug 19, 2022, 1:48:08 PM8/19/22
to AWX Project

ENVIRONMENT
  • AWX version: 21.4.0
  • AWX install method: operator 0.26.0
  • AWX deployment target: k3s + ( 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!
Screenshot from 2022-08-19 14-43-17.png

AWX Project

unread,
Aug 22, 2022, 5:18:52 PM8/22/22
to AWX Project
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

Rafael Silva

unread,
Aug 23, 2022, 9:12:57 AM8/23/22
to AWX Project
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

Rafael Silva

unread,
Aug 23, 2022, 9:14:15 AM8/23/22
to AWX Project
Could it be a certificate issue?

AWX Project

unread,
Aug 24, 2022, 2:20:20 PM8/24/22
to AWX Project
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
Reply all
Reply to author
Forward
0 new messages