Hi Is there any way to clear/delete the `pb:error-...
# pact-broker
a
Hi Is there any way to clear/delete the
pb:error-logs
for a webhook? We've hit on occasions where a webhook has a problem, e.g. incorrect pipeline ID has been supplied when creating the webhook, which results in a legitimate error. Because the pipeline cannot be found. When correcting such an issue (correcting the pipeline id) the error logs are still present. Is there any way to clear these logs? Or do they only clear when the webhook (with the new pipeline ID) is successfully triggered for its event (
contract_requiring_verification_published
) ? Manually triggering the webhook, does not clear the error log either. Thanks
m
I don’t believe so. Why would you want to remove this history?
a
The example scenario is as follows. When the webhook was first triggered, with a new/changed pact, the azure pipeline was attempted to be triggered. However the verification pipeline was not granted permission to a an Azure Pipeline Variable Group. Therefore the logs show an error. Permissions were then resolved in Azure. But since that point, the consumer pact has not changed, and therefore it has not triggered the webhook again (contract_requiring_verification_published event). This leaves the error log in place, and therefore leaves the Webhook status the red/pink colour.
👍 1