You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
After v4 upgrade: webhook-type: webhook-trigger step delivers duplicate messages, then hangs until the job timeout #654
Hi, we use this action in camunda/camunda (public repo) and noticed a strange behavior: After bumping the action from v3.0.5 → v4.0.0 (no other changes), a step using webhook-type: webhook-trigger began delivering the same message multiple times and then hanging with no further log output until the GitHub Actions job hit its timeout-minutes and was cancelled. Reverting to v3.0.5 resolves it.
What type of issue is this? (place an x in one of the [ ])
bug
enhancement (feature request)
question
documentation related
example code related
testing related
discussion
Requirements (place an x in each of the [ ])
I've read and understood the Contributing guidelines and have done my best effort to follow them.
Root cause looks like an upstream bug in the bundled @slack/webhook package (the v8 rewrite that shipped in v4.0.0), not in this action's own code. Filed upstream: slackapi/node-slack-sdk#2673.
Summary: v8's WebhookTrigger.send() reads a successful response with await response.json(). When the trigger endpoint returns a 2xx whose body isn't JSON-parseable, the parse throws after the workflow has already been triggered. That throw is treated as retryable, so p-retry re-POSTs — re-triggering the workflow each time. With the default retries: 5, that's ~5 duplicate deliveries and ~5 minutes of backoff before it gives up, matching the timeline here exactly. v3.0.5 bundled @slack/webhook@7.2.0 (axios), which returned the body without throwing on a non-JSON/empty body → a single delivery.
@cmur2 The example shared above has a "message" payload with text and blocks which might be intended to be an "incoming-webhook" technique instead of "webhook-trigger". Would changing this to the other technique fix these retries?
@cmur2 The example shared above has a "message" payload with text and blocks which might be intended to be an "incoming-webhook" technique instead of "webhook-trigger". Would changing this to the other technique fix these retries?
I can try that but it has to wait a bit as I am unavailable next week.
I can reproduce the issue with webhook-trigger and v4. The same message was posted 6 times from a single action invocation. After reverting to v3, the message was posted once. When using incoming-webhook with v4, the message was also posted once.
I migrated from a much older version 1.24.0 that didn't require webhook-type. The release notes gave me an impression was that webhook-trigger should be used in that case.
Recommended change: Set the webhook-type value to webhook-trigger, as shown in the example below.
I admit that I didn't read the whole release notes, I just searched for webhook-type. Perhaps there should be a specific text stating that webhook-trigger was missing, incoming-webhook should be used if no other changes are made to the setup.
Also, it would be nice if the action supported webhook-type: auto based on the webhook URL and/or warned if the URL looks wrong for the specified webhook-type.
🎉 @cmur2v4.1.0 is out with @slack/webhook8.1.0 (#717), which resolves a non-JSON 2xx response as { ok: true } instead of retrying it.
A webhook-trigger send to an incoming webhook URL, with the default retries, now posts one message and finishes in seconds: test run. Closing this for now, but please reopen if duplicates or hangs still show up after upgrading! 🙏
Activity
cmur2 commentedon Jul 22, 2026
FYI: when creating new issues, the existing https://github.com/slackapi/slack-github-action/blob/main/.github/issue_template.md is ignored and I got presented with an empty form, probably because of the Github warning
You are using an old version of issue templates. Please update to the new issue template workflow.WilliamBergamin commentedon Jul 22, 2026
Root cause looks like an upstream bug in the bundled
@slack/webhookpackage (the v8 rewrite that shipped in v4.0.0), not in this action's own code. Filed upstream: slackapi/node-slack-sdk#2673.Summary: v8's
WebhookTrigger.send()reads a successful response withawait response.json(). When the trigger endpoint returns a 2xx whose body isn't JSON-parseable, the parse throws after the workflow has already been triggered. That throw is treated as retryable, sop-retryre-POSTs — re-triggering the workflow each time. With the defaultretries: 5, that's ~5 duplicate deliveries and ~5 minutes of backoff before it gives up, matching the timeline here exactly. v3.0.5 bundled@slack/webhook@7.2.0(axios), which returned the body without throwing on a non-JSON/empty body → a single delivery.cmur2 commentedon Jul 23, 2026
Thanks for looking at it this quickly, downgrading to v3.0.5 is what we did!
zimeg commentedon Jul 23, 2026
@cmur2 The example shared above has a "message" payload with
textandblockswhich might be intended to be an "incoming-webhook" technique instead of "webhook-trigger". Would changing this to the other technique fix these retries?cmur2 commentedon Jul 23, 2026
I can try that but it has to wait a bit as I am unavailable next week.
proski commentedon Jul 24, 2026
I can reproduce the issue with
webhook-triggerand v4. The same message was posted 6 times from a single action invocation. After reverting to v3, the message was posted once. When usingincoming-webhookwith v4, the message was also posted once.I migrated from a much older version 1.24.0 that didn't require
webhook-type. The release notes gave me an impression was thatwebhook-triggershould be used in that case.I admit that I didn't read the whole release notes, I just searched for
webhook-type. Perhaps there should be a specific text stating thatwebhook-triggerwas missing,incoming-webhookshould be used if no other changes are made to the setup.Also, it would be nice if the action supported
webhook-type: autobased on the webhook URL and/or warned if the URL looks wrong for the specifiedwebhook-type.I'm on GHE v3.18, github-runner 2.335.1.
pimjansen commentedon Aug 12, 2026
My jobs also get stuck for 5min since upgrade from 3.0.5 to 4.0.0
zimeg commentedon Nov 20, 2026
🎉 @cmur2 v4.1.0 is out with
@slack/webhook8.1.0 (#717), which resolves a non-JSON 2xx response as{ ok: true }instead of retrying it.A
webhook-triggersend to an incoming webhook URL, with the default retries, now posts one message and finishes in seconds: test run. Closing this for now, but please reopen if duplicates or hangs still show up after upgrading! 🙏