mirror of
https://github.com/moghtech/komodo.git
synced 2026-05-07 19:35:38 -05:00
Stack Webhook not working for gitlab release & tag events #1217
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Jisagi on GitHub (Jun 2, 2025).
Hi, I recently switch from portainer to komodo and I don't look back at all so far. The only "feature" I could not fully replicate compared to portainer is the webhook redeployment of stacks. Portainer had a webhook that does not need a payload, komodo on the other hand does. The problem I ran into, is the release event gitlab provides. The others I tested (push and deployment) work just fine, but the release event throws the following error when I check the komodo logs:
I could not find any info on what komodo actually needs inside the payload to manually send a request to komodo and skip the whole gitlab webhook part.
Either way, this Issue has two parts:
EDIT: Why I am not using other webhook events?
request branch does not match expectedMy preferred solution would be the release event, but a payload-less webhook as portainer has it would also be an option, albeit probably more work on your end.
EDIT2:
My newest workaround is more like an alternative solution by adding another ci job that calls the komodo api directly with
DeployStackLink and forcing a pull&deploy of the whole stack. It does need an additional ci job and eliminates the need for the webhook alltogether, but the problem with webhook itself still persists. So I do have something that does works for me now, but I will keep the issue open nontheless, for everyone else who expects the (gitlab) webhook to work with these events (release/tag and maybe others, i did not test all of them).@Notexe commented on GitHub (Jun 6, 2025):
I'm having the same issue with github's releases:
@calebcall commented on GitHub (Sep 21, 2025):
If you are still having this issue, double check and make sure your webhook is setup with content-type application/json. The default application/x-www-form-urlencoded will throw this same error.
@Notexe commented on GitHub (Sep 22, 2025):
Even with content-type set to application/json I still get
Failed to parse github request body: missing fieldrefat line 1 column 9615in komodo's logs