Zabbix template error 422 while sending issue to zammad for ticket

Infos:

  • Used Zammad version: 4.0
  • Used Zammad installation type: (source, package, docker-compose, …) Source
  • Operating system: Ubunutu
  • Browser + version: Firefox,chrome

Expected behavior:

Zabbix send problem to zabbix and creating tickets
*

Actual behavior:

  • Sending failed: Request failed with status code 422 Check debug log for more information.

00:00:00.001 [Debug] [ Zammad Webhook ] Sending request: http://172.15.7.141/api/v1/tickets {“title”:"{ALERT.SUBJECT}",“group”:“Users”,“article”:{“subject”:"{ALERT.SUBJECT}",“body”:"{ALERT.MESSAGE}",“type”:“note”,“internal”:false},“customer”:“zabbix.amin@tuf.edu.pk”}

00:00:00.068 [Debug] [ Zammad Webhook ] Received response with status code 422: {“error”:“Userdetail is required but missing.”,“error_human”:“Userdetail is required but missing.”}

00:00:00.068 [Warning] [ Zammad Webhook ] ERROR: Request failed with status code 422 Check debug log for more information.
*

Steps to reproduce the behavior:

Sounds like you have a mandatory field set which your media script does not provide.
Either set it to non mandatory or adjust the media script so it provides a valid value.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.