-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mattermost not working anymore #87
Comments
Hi @N-Schaef I'm working on buttoning up a number of changes for Slack connectivity but will try to circle back to this before pushing a new release to see if I can find a quick fix. If I can't find a quick workaround, I'll likely address this after the next release so I can give it the attention it deserves. Stay tuned. |
Hi @N-Schaef I did carve out some time to look into this issue but unfortuantely the Mattermost server I was previously using for testing was decomissioned (the team switched to Discord) and I haven't had the time to setup a Mattermost system of my own. |
Hi @fraschetti I too have this issue and I happen to be running Mattermost Version: 5.23.0. I could even let you test against my own instance if you required it? The error triggered in Mattermost whenever Octoslack attempts to send a message is as follows: Could not decode the multipart payload of incoming webhook. |
The fix should be made on the Slacker side so I expanded on @fraschetti related issue on the Slacker issue tracker and suggested a change: os/slacker#168 (comment) |
For anyone just looking to get this working whilst waiting for a fix, on your Octoprint instance login via SSH. Hackish fix, direct edit to Slacker:
Search for line 1182 and add the headers attributes to the payload:
Or something a little more robust @fraschetti, you could monkey patch the function (I'm using this currently and it works well). In file Octoslack/octoprint_Octoslack/init.py some where near the top say line 55 add the code below.
|
Hey @N-Schaef Mattermost have release a new version: 5.23.1 that fixes this issue. Detail: |
Since a recent update in the Mattermost server, notifications do not work anymore.
I don't know which version exactly broke this, but we updated from 5.19 -> 5.22.
I also think I found the issue.
Since recently the parsing of the incoming webhook slightly changed.
Mattermost will now throw an
api.webhook.incoming.error
when the "Content-Type" header can't be parsed. Mattermost CodeThis plugin uses the slacker library to communicate with slack/mattermost.
But sadly this library does not set the content header.
Slacker Incoming webhook post
Now the nice fix would of course be that this library is fixed and then the changes are pulled downstream. But this means that this plugin won't work with mattermost for the foreseeable future.
Anything else that could be done?
The text was updated successfully, but these errors were encountered: