Rubén Pérez
07/04/2022, 1:11 PMcontract_content_changed
event), and I was working on a consumer & provider sample repos.
What is happening right now is that once the contract changes, the Webhook gets executed and makes a request to our internal CI tool, which runs the provider verification.
Once that happens, the provider contract tests pass and the verification result is published. The issue I have is that, even the verification passed and the UI shows it green
, we still see red
on the Webhook status column (screenshot attached). If I go in to try to see what happened, I see that shows two webhook executions: one from a few days ago (that failed) and one from today (that succeeded). I have also attached an screenshot showing it.
To me it looks like somehow it keeps showing an earlier webhook execution that failed, and I can't get "rid of it". Could you help me understand what's happening?Rubén Pérez
07/04/2022, 1:15 PMBeth (pactflow.io/Pact Broker/pact-ruby)
Rubén Pérez
07/05/2022, 6:17 AMBeth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Rubén Pérez
07/05/2022, 6:20 AM...../webhooks/{webhookId}/triggered-webhooks
, I get a 404Rubén Pérez
07/05/2022, 6:20 AMBeth (pactflow.io/Pact Broker/pact-ruby)
Rubén Pérez
07/05/2022, 6:21 AMBeth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Rubén Pérez
07/05/2022, 6:23 AMBeth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Rubén Pérez
07/05/2022, 6:26 AMtriggeredWebhooks[0]
) that doesn't look like my created webhook... I guess I created a "bad" webhook at some point, and I'm paying the prize now 😅 😆Rubén Pérez
07/05/2022, 6:27 AMBeth (pactflow.io/Pact Broker/pact-ruby)
Rubén Pérez
07/05/2022, 6:30 AMBeth (pactflow.io/Pact Broker/pact-ruby)
Rubén Pérez
07/05/2022, 7:22 AM..../webhooks/{id}
, and it looked like it was deleted looking at the Broker UI.
But then I created it again (2 times, the fist one I created it wrong and then I did it well), and it showed all the previous data, and all the previous executions are still there.
Hence, I can't get a "green" status in the Broker UI because it still takes into account executions with deleted webhooksBeth (pactflow.io/Pact Broker/pact-ruby)
Rubén Pérez
07/05/2022, 7:23 AMBeth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Rubén Pérez
07/05/2022, 7:24 AMBeth (pactflow.io/Pact Broker/pact-ruby)
Rubén Pérez
07/05/2022, 7:24 AMBeth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Rubén Pérez
07/05/2022, 7:25 AMBeth (pactflow.io/Pact Broker/pact-ruby)
Rubén Pérez
07/05/2022, 7:26 AMRubén Pérez
07/05/2022, 7:30 AM404
, I'm not sure I'm sending the DELETE request to the proper path.
I'm trying to do this:
<http://my-broker/triggered-webhooks/fd6ecab9-bc36-4a06-a035-801bba7c6bd1>
That's what I get when navigating through the HAL Browser to get the status of the webhook executions for my applications. I mean, it points me to that path + /logs to check the execution logs:
<http://my-broker/pacts/provider/ms-common--pact-provider-sample/consumer/ms-common--pact-consumer-sample/webhooks/status>
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Rubén Pérez
07/05/2022, 7:32 AMBeth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
delete from triggered_webhooks
Rubén Pérez
07/05/2022, 7:34 AMBeth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Rubén Pérez
07/05/2022, 7:36 AMRubén Pérez
07/05/2022, 7:36 AMBeth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Rubén Pérez
07/05/2022, 7:38 AMRubén Pérez
07/05/2022, 2:36 PM