Command 'mmctl webhook create-incoming' leads to error

Hi there,
I’m using the currently actual version 10.6.0 and i have difficulties creating a new incoming webhook for a bot account via mmctl inside a docker container.
The console output is as follows:

root@e26337707283:/mattermost> mmctl webhook create-incoming --channel 5htdj7788fr9jgf5y1y1cgie9e --user 5muam46r6prazkx6uc1d46f9fh --display-name Test
Error: CreateIncomingWebhook: api.unmarshal_error, json: cannot unmarshal array into Go value of type model.IncomingWebhook

The creation of webhooks for normal users via the web-interface works flawless, but via mmctl it even fails if i try to use a normal user as parameter.
Are there some input parameters missing in my command or is it currently not possible to create webhooks this way?

Regards

Hi Axel, thanks for reaching out! It looks like you’re encountering an issue with the mmctl webhook create-incoming command; I’d recommend reviewing the incoming webhook documentation for any missing parameters or additional context. If the problem persists, it might be worth checking the compatibility of your docker setup or reporting this as a potential bug. Let me know if I can assist further!

Thanks for your reply.
Since other commands like mmctl auth login and mmctl user list work as expected, it seems there is no problem with the docker configuration at hand. I also couldn’t find any problems regarding the usage of the webhook API.
So i created this issue at Github for further reference.

1 Like