Gitlab pipeline trigger gives 404 when pasting webhook URL in the browser

Viewed 639

I've created a pipeline trigger in Gitlab as the documentation said, but when I open it I get a "error": "404 Not Found".

Webhook URL: https://gitlab.com/api/v4/projects/xxxx/ref/xxxx/trigger/pipeline?token=xxxx

xxxx is being replaced by the values I have. Tried different things, setting the project to public. Enabling/disabling Limit CI_JOB_TOKEN acces.

I'm a bit lost right now.

2 Answers

As examples show you need to use http POST method

curl -X POST $WEBHOOK_URL

If you are pasting the URL directly to your browser it will use http GET and result in 404 error.

Related