Error sending notification webhook: 400

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!

(attachments)

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

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

Could it be a certificate issue?

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