Webhookb gitlab to my mattermost instance failed - staus_code 400

Hello,

I have enabled webhooks on my mattermost instance and configured notifications on gitlab but it returns the error :

HTTP 400 {"id":"web.incoming_webhook.text.app_error","message":"Aucun texte indiqué","detailed_error":"","request_id":"x","status_code":400}

Mattermost log :

{"timestamp":"2021-11-25 21:34:44.784 Z","level":"debug","msg":"Incoming webhook received","caller":"web/webhook.go:54","webhook_id":"x","request_id":"x","payload":"{\"text\":\"\",\"username\":\"\",\"icon_url\":\"\",\"channel\":\"\",\"props\":null,\"attachments\":null,\"type\":\"\",\"icon_emoji\":\"\"}"}

{"timestamp":"2021-11-25 21:34:44.784 Z","level":"debug","msg":"No text specified.","caller":"web/context.go:101","path":"/hooks/x","request_id":"x","ip_addr":"x","user_id":"","method":"POST","err_where":"HandleIncomingWebhook","http_code":400,"err_details":""}

{"timestamp":"2021-11-25 21:34:44.784 Z","level":"debug","msg":"Received HTTP request","caller":"web/handlers.go:109","method":"POST","url":"/hooks/x","request_id":"x","host":"x.com","scheme":"https","status_code":"400"}

Gitlab version : gitlab.com

Mattermost version : 6.1.0 free edition

I have other incoming webhooks on my mattermost instance that work

Hi,

how did you configure the Mattermost webhooks in GitLab, can you share a screenshot? I assume you are following the docs for Mattermost notifications.

Cheers,
Michael

Yes, I followed this tutorial,

Screenshots :



Hello,

up