Internal webhook / slack notification not working with httpProxy

Unimus support forum
Post Reply
jjozwik
Posts: 11
Joined: Thu Oct 13, 2016 4:58 pm

Wed Feb 12, 2020 11:48 am

Current we are using Unimus behind a httpProxy

-Xms256M
-Xmx768M
-Dhttp.proxyHost=Proxy IP
-Dhttp.proxyPort=8080

When we try to send notifications to our internal chat system mattermost / slackish, It looks like the traffic is trying to go through the httpProxy. Returning a 403

So added
-Dhttp.nonProxyHosts="*.OUTINTRADOMAIN.com|172.*.*.*|192.168.*.*"

However it still does not appear to be posting. Now showing a 504 error.

Any ideas?
User avatar
Tomas
Posts: 803
Joined: Sat Jun 25, 2016 12:33 pm

Wed Feb 12, 2020 12:24 pm

Hi,

The proxy configuration in Unimus is currently only applied to the licensing communication, not to any other outgoing requests.
We are addressing this in 2.0.0-Beta2 with a change to the proxying mechanism.

In 2.0.0-Beta2 and later, ALL HTTP/HTTPS communication outbound from Unimus will be proxied through the configured proxies.

This is already mostly implemented, but did not make it in time for code-freeze for 2.0.0-Beta1.
jjozwik
Posts: 11
Joined: Thu Oct 13, 2016 4:58 pm

Wed Feb 12, 2020 2:04 pm

Thanks for the quick reponse..

Do you have a example payload for slack hook call, that I could use to test.. My chat server is currently at a http:/IP:PORT/hookurl structure.
Trying to debug the problem.
User avatar
Tomas
Posts: 803
Joined: Sat Jun 25, 2016 12:33 pm

Sun Feb 16, 2020 11:03 pm

We have switched the Slack integration in 2.0.0 to a Slack Bot from a Webhook.
Since Webhook is no longer used going forward, I would recommend testing the 2.0.0-Beta1, and working with it rather than the old Slack integration: viewtopic.php?p=2518#p2518
Post Reply