In my case, the problem was solved by running the pipeline manually the first time. After that, the webhook worked.