Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

unable to use webhooks and their secret

Rahul Sahotay July 20, 2018

Hello There:

 

I am trying to user repository webhook but seems it is not working for me. I have even provided anonymous permissions to my repository but still seeing error 403

 

Response details

HTTP status:

403

Headers

Cache-Control: must-revalidate,no-cache,no-store
Server: Jetty(9.4.z-SNAPSHOT)
X-Content-Type-Options: nosniff
Content-Length: 421
Date: Fri, 20 Jul 2018 21:00:32 GMT
Via: 1.1 localhost (Apache-HttpClient/4.5.5 (cache))
Content-Type: text/html; charset=ISO-8859-1

Body

<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</h2>
<p>Problem accessing /job/deploymentrepo/job/integration/build. Reason:
<pre>    No valid crumb was included in the request</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.z-SNAPSHOT</a><hr/>

</body>
</html>

1 answer

0 votes
jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 20, 2018

That 403 isn't coming from Bitbucket - it's coming from Jenkins (or whatever server you're sending to that uses Jetty) - so you'll need to add credentials to the webhook.

Rahul Sahotay July 21, 2018

Thanks James!

Even I tried using secret but it didn't work out maybe I'm using the wrong secret. when you say credentials in your command do you mean a combination of username and password or secret plugin inside the build. 

Capture.JPG

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events