Unable to follow project (HTTP Error 422)

If when you're unable to follow a project and see a pop-up error or if, in some instances, nothing happens.

  1. Open your browser console.
  2. Check if the following errors are present:
POST https://circleci.com/api/v1.1/project/gh/<your_organization>/<your_project>/follow 422 (Unprocessable Entity)

Note: In the above error message, <your_organization> will be replaced with your organization name and <your_project> will be replaced by the name of the project you're trying to follow.

Uncaught (in promise) Error: {"message":"{\"message\":\"Validation Failed\",\"errors\":[{\"resource\":\"Hook\",\"code\":\"custom\",\"message\":\"Hook already exists on this repository\"}],\"documentation_url\":\"https://docs.github.com/rest/reference/repos#update—a—repository—webhook\"}"}

If you do see the above errors, this suggests the presence of multiple CircleCI webhooks in the related repository settings.

To resolve the issue:

  1.  Go to the "Webhooks" section of the corresponding GitHub repository settings > https://github.com/<ORG>/<REPO>/settings/hooks.
  2.  Delete any additional CircleCI webhook so that only one remains.

Important note: the webhook we're referring to above is the CircleCI webhook in the GitHub repository settings. It is completely distinct from any webhook you configured in the CircleCI UI under Project Settings > Webhooks.

Was this article helpful?
4 out of 6 found this helpful

Comments

0 comments

Article is closed for comments.