11
votes

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

3

3 Answers

14
votes

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.

0
votes

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.

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