# Mantis to Mattermost webhook plugin problems

**URL:** <https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978>\
**Category:** Troubleshooting\
**Created:** [October 19, 2017, 11:04am UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978 "2017-10-19T11:04:14Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![bafplus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/bafplus/32/1627_2.png) [@bafplus](https://forum.mattermost.com/u/bafplus)\
**Post date:** [October 19, 2017, 11:04am UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/1 "2017-10-19T11:04:14Z")

</div>

Hy all,

First of all, im not a coder myself thats why i came here for help.

What i want to do is send statusupdates from Mantis to a Mattermost channel.  
Since that “should” work with Slack i found a nice plugin that can send those alerts to Slack (and confirmed it works).  
Figuring i only had to change the webhook url to that of my mattermost but sadly that trows a curl error and no way of telling (for me) what causes that error.

The error:  
APPLICATION ERROR #plugin\_Slack\_ERROR\_CURL  
The request to Slack didn’t go through. Check your webhook URL. Also make sure there are no unusual characters in your bot name or bot icon settings. Further details may be printed below this box.  
Please use the “Back” button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

Can somebody help me out “porting” this plugin so it can work with Mattermost?

The plugin in question is: [GitHub - mantisbt-plugins/Slack: Slack integration for Mantis bug tracker](https://github.com/mantisbt-plugins/Slack)

I have the feeling its “simple” but since im no coder this goes above my knowledge.  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![MusikPolice](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/musikpolice/32/1451_2.png) [@MusikPolice](https://forum.mattermost.com/u/MusikPolice)\
**Post date:** [October 23, 2017, 12:33pm UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/2 "2017-10-23T12:33:38Z")

</div>

Can you provide a screenshot of the configuration that you set up for the plugin?

---

<div class="post-metadata">

**Author:** ![bafplus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/bafplus/32/1627_2.png) [@bafplus](https://forum.mattermost.com/u/bafplus)\
**Post date:** [October 23, 2017, 5:31pm UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/3 "2017-10-23T17:31:45Z")

</div>

From the Mantis or Mattermost?

---

<div class="post-metadata">

**Author:** ![MusikPolice](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/musikpolice/32/1451_2.png) [@MusikPolice](https://forum.mattermost.com/u/MusikPolice)\
**Post date:** [October 26, 2017, 12:35pm UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/4 "2017-10-26T12:35:35Z")

</div>

Ideally, both. I can’t provide support for Mantis, but I can take a look at your two configs and see if anything looks obviously incorrect.

---

<div class="post-metadata">

**Author:** ![bafplus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/bafplus/32/1627_2.png) [@bafplus](https://forum.mattermost.com/u/bafplus)\
**Post date:** [October 27, 2017, 9:24am UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/5 "2017-10-27T09:24:22Z")

</div>

Thanks for looking into this.  
Mind that im not a IT guru 😉

If i setup the mantis plugin with a webhook for Slack, it works.  
If i send a httprequest manual from terminal using the webhook for mattermost that works fine.  
But if i use that same webhookurl for mattermost, mattermost trows an error.

Im not at pc right now but wil send you config and further details today or tomorrow.  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![MusikPolice](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/musikpolice/32/1451_2.png) [@MusikPolice](https://forum.mattermost.com/u/MusikPolice)\
**Post date:** [October 31, 2017, 6:34pm UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/6 "2017-10-31T18:34:57Z")

</div>

Hey @bafplus any new developments on this issue?

---

<div class="post-metadata">

**Author:** ![bafplus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/bafplus/32/1627_2.png) [@bafplus](https://forum.mattermost.com/u/bafplus)\
**Post date:** [November 1, 2017, 9:42am UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/7 "2017-11-01T09:42:57Z")

</div>

Hy, sorry for the late reply.

Wo dont have any succes yet.  
It seems it fails on a empty value in the string.  
We however cant seem to pinpoint where that is generated.

---

<div class="post-metadata">

**Author:** ![bafplus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/bafplus/32/1627_2.png) [@bafplus](https://forum.mattermost.com/u/bafplus)\
**Post date:** [November 1, 2017, 9:51am UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/8 "2017-11-01T09:51:59Z")

</div>

![photo_2017-11-01_10-44-33](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/9/90406927fd6e022af2d7d900b1d2e67c5d86bf8d.jpg)

---

<div class="post-metadata">

**Author:** ![bafplus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/bafplus/32/1627_2.png) [@bafplus](https://forum.mattermost.com/u/bafplus)\
**Post date:** [November 1, 2017, 9:52am UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/9 "2017-11-01T09:52:40Z")

</div>

![photo_2017-11-01_10-48-04](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/d/dce9d816f6c0c8dd040ef63db77a106f468d4eca.jpg)

---

<div class="post-metadata">

**Author:** ![MusikPolice](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/musikpolice/32/1451_2.png) [@MusikPolice](https://forum.mattermost.com/u/MusikPolice)\
**Post date:** [November 2, 2017, 1:35pm UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/10 "2017-11-02T13:35:27Z")

</div>

Unfortunately, I’m still going to need to see your Mattermost/Mantis config in order to help. All I can tell from those snippets that you provided is that you’ve got a dash in some config value that’s expected to be a number.

---

<div class="post-metadata">

**Author:** ![bafplus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/bafplus/32/1627_2.png) [@bafplus](https://forum.mattermost.com/u/bafplus)\
**Post date:** [November 2, 2017, 2:23pm UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/11 "2017-11-02T14:23:18Z")

</div>

The link to the plugin is in the main text.

![Naamloos](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex020/uploads/mattermost/original/2X/b/bd38bce52e930495c0d6f073219e00397eaeaa71.png)

---

<div class="post-metadata">

**Author:** ![MusikPolice](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/musikpolice/32/1451_2.png) [@MusikPolice](https://forum.mattermost.com/u/MusikPolice)\
**Post date:** [November 7, 2017, 1:27pm UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/12 "2017-11-07T13:27:01Z")

</div>

@bafplus I’m afraid you’re going to have to give me some more context here. Where did you see the error you posted above? Where is this screen shot from? It doesn’t look like a tool that I’m familiar with, so I’m having a difficult time diagnosing the problem.

In the original error message that you posted, this text appeared: “Also make sure there are no unusual characters in your bot name or bot icon settings”. In the subsequent error messages that you posted, the logs were complaining about a dash character (-) in something that was expected to be a number. I would suggest that you check all of the configuration for dash characters, and see if there are any in unexpected places that could be removed.

---

<div class="post-metadata">

**Author:** ![bafplus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/bafplus/32/1627_2.png) [@bafplus](https://forum.mattermost.com/u/bafplus)\
**Post date:** [November 7, 2017, 2:10pm UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/13 "2017-11-07T14:10:24Z")

</div>

The problem is that UID= part. Its empty and because of that thereś a - in the string. However…i cant seem to find WHERE to input that UID. Its not in any of the configs.

---

<div class="post-metadata">

**Author:** ![MusikPolice](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/musikpolice/32/1451_2.png) [@MusikPolice](https://forum.mattermost.com/u/MusikPolice)\
**Post date:** [November 8, 2017, 7:58pm UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/14 "2017-11-08T19:58:59Z")

</div>

I’m afraid that I don’t know enough about Mantis or how it is configured to help you.

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [November 9, 2017, 7:40am UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/15 "2017-11-09T07:40:39Z")

</div>

Is there anyone in the community who might be able to help @bafplus troubleshoot his issue?

---

<div class="post-metadata">

**Author:** ![aalasolutions](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/aalasolutions/32/1713_2.png) [@aalasolutions](https://forum.mattermost.com/u/aalasolutions)\
**Post date:** [November 28, 2017, 1:00pm UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/16 "2017-11-28T13:00:27Z")

</div>

I have created a plugin for the integration, basically I took the code of Slack + Mantis Plugin and changed it to Mattermost, so far it is working fine for me.

> **[aalasolutions/MantisBT-Mattermost](https://github.com/aalasolutions/MantisBT-Mattermost/)**
>
> Mantis integration plugin with Mattermost. Contribute to aalasolutions/MantisBT-Mattermost development by creating an account on GitHub.

I have just encountered error of special characters in the description/title and will solve that very soon.

Would require feedback on the plugin too

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [November 29, 2017, 8:33am UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/17 "2017-11-29T08:33:13Z")

</div>

Fantastic @aalasolutions! Thank you 🙂

Would you be open to [sharing your work](https://www.mattermost.org/share-your-mattermost-projects/)? If so, please complete [this form](https://spinpunch.wufoo.com/forms/mattermost-integrations-and-installers/) where you’ll be able to follow progress in the [Integrations and Apps](https://pre-release.mattermost.com/core/channels/integrations) channel on our [nightly build server](https://pre-release.mattermost.com/signup_user_complete/?id=f1924a8db44ff3bb41c96424cdc20676).

Thanks again for your work on this integration!

---

<div class="post-metadata">

**Author:** ![aalasolutions](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/aalasolutions/32/1713_2.png) [@aalasolutions](https://forum.mattermost.com/u/aalasolutions)\
**Post date:** [November 29, 2017, 8:53am UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/18 "2017-11-29T08:53:46Z")

</div>

@lindy65 Thank you, i have filled the form and also joined pre release channel

---

<div class="post-metadata">

**Author:** ![lindy65](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/lindy65/32/1811_2.png) [@lindy65](https://forum.mattermost.com/u/lindy65)\
**Post date:** [November 29, 2017, 9:08am UTC](https://forum.mattermost.com/t/mantis-to-mattermost-webhook-plugin-problems/3978/19 "2017-11-29T09:08:19Z")

</div>

I see the details of your integration in the channel @aalasolutions - thank you!
