Skip to content
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

Gitlab error: "Missing body, key" #53

Open
jeffrson opened this issue Nov 25, 2022 · 2 comments
Open

Gitlab error: "Missing body, key" #53

jeffrson opened this issue Nov 25, 2022 · 2 comments

Comments

@jeffrson
Copy link

jeffrson commented Nov 25, 2022

Hi,

when I test "matrix-webhook" with curl -d '{"body":"...", "key": "..."}' https://... the body message is posted to the group. However, the Gitlab test shows this error message:

Hook executed successfully but returned HTTP 400 {"status": 400, "ret": "Missing body, key"}
for projects or groups (where it is possible on premium plans).

Or is it intentionally possible only via Google-Chat- or Microsoft-Teams-Integration?

BTW, Microsoft-Teams looks nice, while Google-Chat has some problems with Line-Feeds (at least one missing after "Compare changes", then multiple LF between commits).

But thank you so much for this great webhook gateway. It just works. I had a lot of trouble (took me too much time) with other matrix application service solution, which finally cannot cope (at least currently) with Gitlab group hooks.

@nim65s
Copy link
Owner

nim65s commented Nov 25, 2022

Hi,

With Gitlab and Google Chat integration, you need to tell gitlab that your webhook url ends with ?formatter=gitlab_gchat&key=API_KEY. Did you properly add that ?

@jeffrson
Copy link
Author

jeffrson commented Mar 8, 2023

Ah, sorry for the oversight.

Yes, I did this. In the source I could see, that Google-Chat-Integration looks much simpler, but I cannot really compare, because I don't know how messages to Google-Chat should look like.

It's not too important, since Teams-Link works well.

As for the "Missing body, key" error, this is strange (unexpected, because the documentation just talks about group webhooks), but as it works as a "Teams" Link I can use it as such.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants