vrenjith / jira-matter-bridge Goto Github PK
View Code? Open in Web Editor NEWA webhook translator for JIRA to Mattermost
License: GNU General Public License v3.0
A webhook translator for JIRA to Mattermost
License: GNU General Public License v3.0
Hi,
We often see these error in our jira logs and sometimes we see that jira falls over when this occurs. We have configured the web hooks to communicate with our mattermost channel.
2017-06-13 10:35:05,112 httpclient-callbacks:thread-96 WARN anonymous [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Server error - 500 when posting to web hook at 'http://iob0283:3000/hooks/f6jk4rbzs7gf5yedt93cc5r66r'
2017-06-13 10:35:05,112 httpclient-callbacks:thread-96 WARN anonymous [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Server error - 500 when posting to web hook at 'http://iob0283:3000/hooks/yqpxj5tz33nninc78nx5gzpeme'
2017-06-13 10:35:05,114 httpclient-callbacks:thread-96 WARN anonymous [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Server error - 500 when posting to web hook at 'http://iob0283:3000/hooks/eqoudr18a3yy5xriuays97yjwh'
2017-06-13 10:35:05,114 httpclient-callbacks:thread-96 WARN anonymous [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Server error - 500 when posting to web hook at 'http://iob0283:3000/hooks/yqpxj5tz33nninc78nx5gzpeme'
2017-06-13 10:35:05,114 httpclient-callbacks:thread-96 WARN anonymous [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Server error - 500 when posting to web hook at 'http://iob0283:3000/hooks/f6jk4rbzs7gf5yedt93cc5r66r'
2017-06-13 10:35:05,116 httpclient-callbacks:thread-96 WARN anonymous [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Server error - 500 when posting to web hook at 'http://iob0283:3000/hooks/f6jk4rbzs7gf5yedt93cc5r66r'
2017-06-13 10:35:05,116 httpclient-callbacks:thread-96 WARN anonymous [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Server error - 500 when posting to web hook at 'http://iob0283:3000/hooks/yqpxj5tz33nninc78nx5gzpeme'
2017-06-13 10:35:05,116 httpclient-callbacks:thread-96 WARN anonymous [c.a.webhooks.plugin.PublishTaskFactoryImpl$PublishTaskImpl] Server error - 500 when posting to web hook at 'http://iob0283:3000/hooks/yqpxj5tz33nninc78nx5gzpeme'
Hi
Using jira-matter-bridge results in a 301 error when POSTing to the Mattermost webhook:
Log output:
npm[17557]: POST /hooks/[hookid]?user_id=johnsmith&user_key=johnsmith 200 903.011 ms - 290
npm[17557]: Response: <html>
npm[17557]: <head>
npm[17557]: <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
npm[17557]: <title><span class='fa fa-chevron-left'></span>Back - Error</title>
npm[17557]: <link rel="stylesheet" href="/static/css/bootstrap-3.3.5.min.css">
npm[17557]: <link rel="stylesheet" href="/static/css/jasny-bootstrap.min.css" rel="stylesheet">
npm[17557]: <script src="/static/js/react-with-addons-0.13.3.min.js"></script>
npm[17557]: <script src="/static/js/jquery-1.11.1.min.js"></script>
npm[17557]: <script src="/static/js/bootstrap-3.3.5.min.js"></script>
npm[17557]: <script src="/static/js/react-bootstrap-0.25.1.min.js"></script>
npm[17557]: <link id="favicon" rel="icon" href="/static/images/favicon/favicon-16x16.png" type="image/x-icon
npm[17557]: <link rel="shortcut icon" href="/static/images/favicon/favicon-16x16.png" type="image/x-icon">
npm[17557]: <link href='/static/css/google-fonts.css' rel='stylesheet' type='text/css'>
npm[17557]: <link rel="stylesheet" href="/static/css/styles.css">
npm[17557]: </head>
npm[17557]: <body class="white error">
npm[17557]: <div class="container-fluid">
npm[17557]: <div class="error__container">
npm[17557]: <div class="error__icon"><i class="fa fa-exclamation-triangle"></i></div>
npm[17557]: <h2>GitLab Mattermost needs your help:</h2>
npm[17557]: <p></p>
npm[17557]: <a href="https://[mattermost_server]hooks">Go back to Mattermost</a>
npm[17557]: </div>
npm[17557]: </div>
npm[17557]: </body>
npm[17557]: <script>
npm[17557]: var details = "
The issue is caused because query string ?user_id=johnsmith&user_key=johnsmith
being taken from the original JIRA request and appended to the Mattermost webhook POST request. I can't find where in the jira-matter-bridge code this is happening, but the latest version of GitLab Mattermost definitely doesn't like it!
Please can any superfluous query strings be stripped off before the POST request to the Mattermost webhook URL?
Hey @vrenjith !
First, hugely appreciate you sharing this project back with the world. Fantastic work!
I wanted to let you know about our plans moving to API v4:
To make the Mattermost API web service easier to use and to offer more powerful options for these integrations, Mattermost will be moving to a new API version soon. Highlights include:
We plan to release API version 4 on March 16th, with Mattermost server 3.7. While the current API version 3 will be supported until September 16th, we recommend you begin using API version 4 soon after its release.
API version 4 is an active and on-going project. If you're interested in helping contribute, please join our Mattermost community instance and the APIv4 channel.
We've prepared a contribution process for APIv4 and a progress tracker for new APIv4 enpoints to help you get started.
We're also open for suggestions on adding new API endpoints to help with your integration.
It's easier to set one early on, before you have a ton of users to get pissed off :)
Could you create an automated build for your docker image on docker hub?
It would simplify the use of your image.
Hi,
I'm trialing Mattermost at our work and want to setup some JIRA integrations. One of the reasons we're trialing Mattermost is that we can host everything internally. In your guide for the JIRA integration, we need to use Heroku as the webhook bridge. Is there a way we can host a bridge internally and not use Heroku ?
thanks
Can't find any documentation about the key features of the bridge. Can you pls add one to the readme or at least in the wiki?
Hi, first of all thanks for setting this up.
I have a few questions, for environmental variables being set on the Mattermost server:
MATTERMOST_SERVER_PORT - Default: 80
MATTERMOST_SERVER_PATH - Default: /hooks/
MATTERMOST_SERVER_PROTO - Default: http
MATTERMOST_SERVER - Default: localhost
I'm using https, which is being forwarded by nginx, will that affect these variables?
Secondly,
in the walkthrough, you say:
Install the required modules by running npm install
Start the app by running npm start
Should this be done on the Mattermost server or the Jira server? Also, which modules are required?
Finally,
https://github.com/mattermost/platform/blob/master/doc/integrations/webhooks/Incoming-Webhooks.md
is a dead link. Any idea where they moved it?
Thanks in advance for any help.
Atlassian has moved logos etc to atlassian.design
https://design.atlassian.com/images/brand/logo-25.png no longer exists.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.