jenkinsci / jenkinsci/gitlab-branch-source-plugin
[JENKINS-65902] Gitlab Trigger Url returns 403
- Dominant language
- Java
- Stars
- 134
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
When i try to send a Gitlab Trigger Push Event tests to jenkins, the server received the 403 error
// code placeholder
Hook executed successfully but returned HTTP 403 "Content-Type" content="text/html;charset=utf-8"/> Error 403 No valid crumb was included in the requestHTTP ERROR 403 No valid crumb was included in the request
URI:/job/Multiple-Branch-Demo/gitlab-webhook/post STATUS:403 MESSAGE:No valid crumb was included in the request SERVLET:Stapler
"https://eclipse.org/jetty">Powered by Jetty:// 9.4.33.v20201020
what should i do if i want to get a successful return?
Notes:
Already configured the jenkins and gitlab, like below:
1 http://xxxxxxxxxx/job/Multiple-Branch-Demo/gitlab-webhook/post
2 
3 
4 My GitLab Branch Source plugin version is 1.5.4

---
Originally reported by rty_dq, imported from: Gitlab Trigger Url returns 403
baymac
Raw content of original issue
When i try to send a Gitlab Trigger Push Event tests to jenkins, the server received the 403 error
// code placeholder
Hook executed successfully but returned HTTP 403 <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <title>Error 403 No valid crumb was included in the request</title> </head> <body><h2>HTTP ERROR 403 No valid crumb was included in the request</h2> <table> <tr><th>URI:</th><td>/job/Multiple-Branch-Demo/gitlab-webhook/post</td></tr> <tr><th>STATUS:</th><td>403</td></tr> <tr><th>MESSAGE:</th><td>No valid crumb was included in the request</td></tr> <tr><th>SERVLET:</th><td>Stapler</td></tr> </table> <hr><a href="https://eclipse.org/jetty">Powered by Jetty:// 9.4.33.v20201020</a><hr/> </body> </html>what should i do if i want to get a successful return?
Notes:
Already configured the jenkins and gitlab, like below:
1 http://xxxxxxxxxx/job/Multiple-Branch-Demo/gitlab-webhook/post
2
3
4 My GitLab Branch Source plugin version is 1.5.4
3 attachments
- [image-2021-06-16-11-09-29-790.png](https://issues.jenkins.io/secure/attachment/55013/image-2021-06-16-11-09-29-790.png)
> 
- [image-2021-06-16-11-09-49-972.png](https://issues.jenkins.io/secure/attachment/55014/image-2021-06-16-11-09-49-972.png)
> 
- [image-2021-06-16-12-46-12-644.png](https://issues.jenkins.io/secure/attachment/55015/image-2021-06-16-12-46-12-644.png)
> 
Contributor guide
Assessment
This issue has not been assessed yet.