So today, I upgraded our Zammad version to 6.0 to integrate the new Microsoft Teams Webhook, which does not work unfortunately
I followed this documentation: Microsoft Teams Notifications — Zammad documentation
Used Zammad version: 6.0.0-1687169393.30390930.focal
Used Zammad installation type: package
Operating system: Ubuntu 20.04
Browser + version: Google Chrome (newest version)
Expected behavior:
Webhook works
Actual behavior:
Webhook throws error
Steps to reproduce the behavior:
Create “Incoming Webhook” in Microsoft Teams Channel
Create predefined Microsoft Teams Webhook in Zammad
Copy the provided Webhook Url into the newly created webhook
Create Trigger to activate Webhook
The error logs from /var/log/zammad/production.log
E, [2023-06-20T00:34:28.129877#4744-112200] ERROR – : 2023-06-20T00:34:28+0200: [Worker(host:ticketsystem pid:4744)] Job TriggerWebhookJob [3f5a5891-519e-4112-8383-88eb206fd8e5] from DelayedJob(default) with arguments: [{“_aj_globalid”=>“gid://zammad/Trigger/13”}, {“_aj_globalid”=>“gid://zammad/Ticket/3796”}, nil, {“changes”=>{“_aj_symbol_keys”=>[]}, “user_id”=>1831, “execution_type”=>“trigger”, “event_type”=>“update”, “_aj_ruby2_keywords”=>[“changes”, “user_id”, “execution_type”, “event_type”]}] (id=3143052) (queue=default) FAILED (0 prior attempts) with NoMethodError: undefined method `[]’ for nil:NilClass
I was also testing other triggers, like updating the ticket etc., the webhook protocol shows me a created post request with an empty response, but nothing ever shows up in our Microsoft Teams channel
Were can I find the notification mailer template? I deleted the mail notification at the trigger and the webhook request is being requested again. This time this error occurs in the logs
E, [2023-06-20T12:12:29.678764#4744-112200] ERROR – : 2023-06-20T12:12:29+0200: [Worker(host:ticketsystem pid:4744)] Job TriggerWebhookJob [937b99aa-9648-4a5e-98c5-5d92f7b25711] from DelayedJob(default) with arguments: [{“_aj_globalid”=>“gid://zammad/Trigger/13”}, {“_aj_globalid”=>“gid://zammad/Ticket/3801”}, {“_aj_globalid”=>“gid://zammad/Ticket::Article/7964”}, {“changes”=>{“_aj_symbol_keys”=>[]}, “user_id”=>2025, “execution_type”=>“trigger”, “event_type”=>“create”, “_aj_ruby2_keywords”=>[“changes”, “user_id”, “execution_type”, “event_type”]}] (id=3143491) (queue=default) FAILED (4 prior attempts) with TriggerWebhookJob::RequestError: TriggerWebhookJob::RequestError
E, [2023-06-20T12:12:29.678900#4744-112200] ERROR – : 2023-06-20T12:12:29+0200: [Worker(host:ticketsystem pid:4744)] Job TriggerWebhookJob [937b99aa-9648-4a5e-98c5-5d92f7b25711] from DelayedJob(default) with arguments: [{“_aj_globalid”=>“gid://zammad/Trigger/13”}, {“_aj_globalid”=>“gid://zammad/Ticket/3801”}, {“_aj_globalid”=>“gid://zammad/Ticket::Article/7964”}, {“changes”=>{“_aj_symbol_keys”=>[]}, “user_id”=>2025, “execution_type”=>“trigger”, “event_type”=>“create”, “_aj_ruby2_keywords”=>[“changes”, “user_id”, “execution_type”, “event_type”]}] (id=3143491) (queue=default) FAILED permanently because of 5 consecutive failures
Sorry that was not the answer I’m looking for.
I didn’t want to know how you access Zammad via Web but if your server Zammad runs on requires proxy servers to communicate with the internet.
So today, I kept on trying to integrate Zammd in our Teams environment and got some weird behavior. I was sending the following request via curl directly to the Incoming Webhook Endpoint, and it worked flawless. In the Webhook Logs the requests appear as well, but all request do have status code 0. I’m wondering if there is any setting I’m missing which blocks external requests from Zammad?
After disabling ipv6 on our vps webhooks now work. I’ll start investigating how we can get things to work with ipv6, maybe there is a firewall config problem.