mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 13:00:33 +01:00
WebHook Related Issues #675
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 @Xor-el on GitHub (Mar 6, 2025).
Originally assigned to: @StefH on GitHub.
Describe the bug
Bug 1 (WebHook does not support Local Requests)
When trying to use the
WebHookfunctionality to initiate a webhook, for online webhook URLs it works but for local ones, the receiving service receives no request.Expected behavior:
It should work the same both for online and local webhooks.
Test to reproduce
DummyApi project followed by the "WireMockBug001" project. (In case you get an error the first time you run the Demo, close it and run again.).Bug 2 (WebHook does not post request body when using
Bodyinstead ofBodyAsJson)When trying to use the
WebHookfunctionality to initiate a webhook,BodyAsJsonworks butBodydoesn't.Expected behavior:
It should work the same both for
BodyandBodyAsJson.Test to reproduce
BodyAsJsonand uncommentBody. do same forpost-transaction-local.jsonDummyApi project followed by the "WireMockBug001" project. (In case you get an error the first time you run the Demo, close it and run again.).Other related info
Docker is needed to run the Demo as it uses WireMock.NET Test Container.
@Xor-el commented on GitHub (Mar 7, 2025):
Additional Question.
Is it possible to define multiple WebHooks in a mapping as using the mapping below does not seem to work?
@Xor-el commented on GitHub (Mar 7, 2025):
Just made another discovery.
It seems like setting "UseWebhooksFireAndForget" to
truecauses the webhook not to fire.see sample mapping below
@StefH commented on GitHub (May 16, 2025):
I'll start investigating 'Bug 1 (WebHook does not support Local Requests)'...