Issue #19 resolved
Former user created an issue

Dear support,

We are trying to implement your addon, but we found out that it's not using Confluence proxy configuration and there is no option to configure it inside addon configuration page, which mean we can't connect to slack providing webhook url. From server curl works like a charm.

Server Version: 5.9_A1

Troubleshooting:

2018-11-26 22:06:24,499 ERROR [http-nio-8090-exec-6] [madein49.slackconfluence.actions.SlackWebhookValidator] sendSlackTestMessage Exception when sending test message to https://hooks.slack.com/services/T03L14Q4E/BECUTTNRM/iLs6fbrVazj9q05
 -- referer: https://wiki-test.tools/admin/slack-for-confluence-configuration.action | url: /admin/slack-for-confluence-configuration.action | traceId: edc92567f4c0dd77 | userName: xxx | action: slack-for-confluence-configuratio
java.io.UncheckedIOException: org.apache.http.conn.HttpHostConnectException: Connect to hooks.slack.com:443 [hooks.slack.com/143.204.93.160] failed: Connection timed out (Connection timed out)

Seems so that the plugin does not support proxy settings. just checked the code of SlackService.class and it is using httpclient v4.3.3 and does not setup proxy in the httpClient.

Probably missing part:

HttpHost proxy = new HttpHost(System.getProperty("https.proxyHost"),System.getProperty("https.proxyPort"));
httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);

Comments (1)

  1. Log in to comment