gustavkarlsson / rocketchat-jira-trigger

Outgoing webhook integration for Rocket.Chat that summarizes any JIRA issues mentioned
MIT License
42 stars 20 forks source link

Unable to build - getting 401 Unauthorized error on httpclient plugin on atlassian mavenlink #44

Closed pathikb closed 6 years ago

pathikb commented 7 years ago

When I try to build using the instructions given, I get the following error:

FAILURE: Build failed with an exception.

Please suggest a way to fix this

gustavkarlsson commented 7 years ago

Thank you for reporting this. Hoping to it this week. This failed Travis build also confirms it: https://travis-ci.org/gustavkarlsson/rocketchat-jira-trigger/jobs/270170094

Reason seems to be that the Atlassian Maven repository now requires authentication.

pathikb commented 6 years ago

If you could point me in the right direction, it would really help me try and fix this issue myself.

gustavkarlsson commented 6 years ago

Fixed in Release 1.2.1

pathikb commented 6 years ago

Well, the build issue is resolved but now I get the below error when I try to run the binary -

root@vps2:~/rocketchat-jira-trigger/build/install/rocketchat-jira-trigger# ./bin/rocketchat-jira-trigger config.tml 2017-10-26 16:12:45,658 [main] INFO s.g.r.j.RestClientProvider - Using basic authentication 2017-10-26 16:12:45,660 [main] INFO s.g.r.j.RestClientProvider - Password provided through configuration Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE at org.apache.http.impl.nio.codecs.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:52) at org.apache.http.impl.nio.codecs.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:56) at org.apache.http.impl.nio.codecs.DefaultHttpRequestWriterFactory.(DefaultHttpRequestWriterFactory.java:46) at org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionFactory.(ManagedNHttpClientConnectionFactory.java:75) at org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionFactory.(ManagedNHttpClientConnectionFactory.java:83) at org.apache.http.impl.nio.conn.ManagedNHttpClientConnectionFactory.(ManagedNHttpClientConnectionFactory.java:64) at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.(ApacheAsyncHttpClient.java:175) at com.atlassian.httpclient.apache.httpcomponents.ApacheAsyncHttpClient.(ApacheAsyncHttpClient.java:123) at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.doCreate(DefaultHttpClientFactory.java:68) at com.atlassian.httpclient.apache.httpcomponents.DefaultHttpClientFactory.create(DefaultHttpClientFactory.java:35) at com.atlassian.jira.rest.client.internal.async.AsynchronousHttpClientFactory.createClient(AsynchronousHttpClientFactory.java:63) at com.atlassian.jira.rest.client.internal.async.AsynchronousJiraRestClientFactory.create(AsynchronousJiraRestClientFactory.java:35) at se.gustavkarlsson.rocketchat.jira_trigger.RestClientProvider.get(RestClientProvider.java:32) at se.gustavkarlsson.rocketchat.jira_trigger.Server.(Server.java:48) at se.gustavkarlsson.rocketchat.jira_trigger.App.(App.java:19) at se.gustavkarlsson.rocketchat.jira_trigger.App.main(App.java:26)

gustavkarlsson commented 6 years ago

You are right. Somehow the fix introduced another bug that I did not detect. I've opened #45 to resolve it.

Sorry for the trouble!