Overview
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:
-
Open your browser console.
-
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.
Solution
To resolve the issue:
- Go to the "Webhooks" section of the corresponding GitHub repository settings > https://github.com/<ORG>/<REPO>/settings/hooks.
- 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.
Comments
Article is closed for comments.