simbu
simbu

Reputation: 151

AWS codepipe webhooks

After creating aws codepipeline, am getting error like

Could not register webhook . The webhook was created, and your pipeline was updated, but the webhook could not be registered with GitHub. Wait a few minutes and then try again. If the problem continues, contact your AWS administrator or AWS Support. Failed on the following operation: RegisterWebhookWithThirdParty. The following message contains details on the exception: Webhook could not be registered with GitHub. Error cause: Not found [StatusCode: 404, Body: {"message":"Not Found","documentation_url":"https://developer.github.com/v3/repos/hooks/#create-a-hook"}]

Does anyone have idea about this issues? Thanks in advance

Upvotes: 15

Views: 8891

Answers (3)

Ali Hosni Bouslimi
Ali Hosni Bouslimi

Reputation: 1

  1. Go to the repository settings
  2. Select the Webhooks tab.
  3. Delete all webhooks related to codepipeline.
  4. Redeploy your pipelines.

Upvotes: 0

Shubham Chopra
Shubham Chopra

Reputation: 1727

You can create a webhook only when you have admin access to bitbucket/github.Try creating a webhook from an admin account.That should solve your problem.

Upvotes: 21

hephalump
hephalump

Reputation: 6164

Errors like this from Github can be particularly difficult to triage because of the way Github that handles what should be a 403 Forbidden as a 404 Not Found.

The very likely cause of this issue is that while you may have read and write permissions to Github your Github Personal Access Token likely does not have Webhook permissions.

The resolution to this is to have the repo administrator grant the appropriate Webhook creation permissions to the Github user account that is requesting to create the Webhook.

Upvotes: 0

Related Questions