Forum Discussion

Stoplight's avatar
Stoplight
Community Manager
9 months ago

404 error when installing GitHub webhook

Originally posted by user Luca P. to the Stoplight Community on 07/11/2023 at 11:09 ET.

Hi all, when I try to install a GitHub webhook for my project, I get an error stating:

"Something went wrong while installing this webhook. You may not have the correct GitHub permissions to perform this action in your external VCS."

As my permissions should be ok, I checked the raw /graphql API response, and it seems the error is a '404 not found':

{
    "data": null,
    "errors": [
        {
            "extensions": {
                "code": "INTERNAL_SERVER_ERROR",
                "message": "{\"message\":\"Not Found\",\"documentation_url\":\"https://docs.github.com/rest/webhooks/repos#list-repository-webhooks\"}"
            },
            "path": [
                "createExternalWebhook"
            ],
            "message": "Request failed with status code 404",
            "locations": [
                {
                    "line": 1,
                    "column": 31
                }
            ]
        }
    ]
}