Introduction
When users try to integrate Terraform Enterprise (TFE) with GitHub Enterprise by following this public documentation, it fails with an error message VCS webhook creation failure: <repo name>: 422 Unprocessable Entity on the Terraform enterprise UI.
Problem
GitHub Enterprise documentation says "you can create up to 250 webhooks for each event on each installation target (GitHub Enterprise Server instance, specific organization, or specific repository)".
The error message in TFE is not very descriptive and may lead to confusion.
Users might already verify network connectivity, Admin privileges or testing it by creating new VCS repository, etc but that doesn't fix the issue.
Prerequisites:
This is a limitation on GitHub Enterprise and the limit of 250 webhooks for a single repository hasn't changed from GitHub Enterprise server version 3.4 to the current 3.11 release .
Cause
Once the web hooks limit are reached in GitHub Enterprise, it won't allow creating any new push events.
If a user tried to manually create webhook outside of TFE and closely observe GitHub Enterprise UI, it will display an error message as below:
Error:
There was an error setting up your hook: The "push" event cannot have more than 250 hooks and Config must contain URL for webhooks.
Solution
Clean up hooks in GitHub enterprise, delete hooks from the repository that are no longer needed.
Additional Information: