Fix create-or-update-webhook 404 error on missing webhook#23
Draft
Fix create-or-update-webhook 404 error on missing webhook#23
Conversation
Co-authored-by: YOU54F <19932401+YOU54F@users.noreply.github.com>
Co-authored-by: YOU54F <19932401+YOU54F@users.noreply.github.com>
Co-authored-by: YOU54F <19932401+YOU54F@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix create-or-update-webhook 404 error when webhook doesn't exist
Fix create-or-update-webhook 404 error on missing webhook
Feb 17, 2026
Member
|
it is handling the 404 error now and falling back to creating a new webhook. Only issue now is it's always creating a new webhook and not respecting the uuid being passed in and using that to create the webhook. |
Co-authored-by: YOU54F <19932401+YOU54F@users.noreply.github.com>
Contributor
Author
Fixed in commit 0826340. The issue was that when creating a new webhook (after getting 404), the UUID wasn't being included in the POST request body. The Pact Broker API requires the UUID field in the request body when creating a webhook with a specific UUID. Now the code adds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix create-or-update-webhook to handle non-existent webhooks
create_webhookfunction to handle NotFound error when webhook doesn't existWebhookOperationenum (Create/Update) for clarityOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.