Hello! I have defined a mapping with a `postServeA...
# general
g
Hello! I have defined a mapping with a
postServeAction
like the following. Both the triggering call and the webhook call are registered by wiremock standalone as I can see them in the wiremock console, but the webhook is not being made and I don't see any errors in the wm console or in the webhook api endpoint. Is there any way to debug this further? thanks in advance!
Copy code
final MappingBuilder mappingBuilder = post(urlPathMatching("/v1/triggering-endpoint"))
        .withName(MsMock.getTestName())
        .willReturn(aResponse()
            .withStatus(200)
            .withHeader("content-type", "application/json")
            .withBody("{\"id\": " + id + "}"))
        .withPostServeAction("webhook", webhook()
            .withMethod("POST")
            .withUrl("<https://myinternalapi.net/webhook-api-endpoint>")
            .withHeader("Content-Type", "application/json")
            .withBody("{ \"someField\": \"someValue\" }");
t
Hi @Giovanny Sayas, first thing to check - is the webhook extension enabled at startup?
g
i was able to get it running, there was something wrong with the url
a follow up question i have is, can i make HTTPS calls with the webhook?
t
Yes, that should work just fine