Unable to Follow Project: (HTTP Error 422)


If you're unable to follow a project and see a pop-up error or if, in some instances, nothing happens then please follow these steps outlined below to mitigate the error:

  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 webhooks so that only one remains.

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


Additional Resources:

Was this article helpful?
9 out of 18 found this helpful



Article is closed for comments.