Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,640,535
Community Members
 
Community Events
196
Community Groups

Adding discord webhooks to bitbucket repo

Whenever i try to add a discord generated webhook to bitbucket repos i keep receiving 400 erros, does anyone know how to set them up correctly?

4 answers

1 accepted

12 votes
Answer accepted

It is because Discord does not support webhooks from bitbucket, they only have two integrations as you can see in https://discordapp.com/developers/docs/resources/webhook#execute-webhook

For now, I think you must send a request to discord support team to add support for bitbucket -> https://support.discordapp.com/hc/en-us

 

EDIT: there is a service that can translate the webhook format from bitbuket to discord: https://skyhook.glitch.me/

skyhook is the perfect solution for me.

Like # people like this

Any idea on how to get this working with Jira? Receiving an error when I put in the Discord URL to Skyhook for Jira webhooks:

https://twitter.com/urinalcake/status/1055111480876720130

Like Ran Crump likes this
Like DynamicBLUE likes this

Skyhook indeed did it for me, sorry for the extremely late response. Thanks though :)

Like # people like this

Skyhook allowed us to integrate BitBucket with Discord. Two thumbs up Skyhook

Like # people like this

Not working with bitbucket and Discord for me, getting error 502

my skyhook looks like: https://skyhook.glitch.me/api/webhooks/<numbers>/<numbers_and_letters>-<numbers_and_letters>_<numbers_and_letters>/bitbucket

is this correct?

 

{"message":"Request failed with status code 400","name":"Error","stack":"Error: Request failed with status code 400\n    at createError (/rbd/pnpm-volume/90fb9114-add2-4467-b406-16062c42fe85/node_modules/.registry.npmjs.org/axios/0.19.2/node_modules/axios/lib/core/createError.js:16:15)\n    at settle (/rbd/pnpm-volume/90fb9114-add2-4467-b406-16062c42fe85/node_modules/.registry.npmjs.org/axios/0.19.2/node_modules/axios/lib/core/settle.js:17:12)\n    at IncomingMessage.handleStreamEnd (/rbd/pnpm-volume/90fb9114-add2-4467-b406-16062c42fe85/node_modules/.registry.npmjs.org/axios/0.19.2/node_modules/axios/lib/adapters/http.js:236:11)\n    at IncomingMessage.emit (events.js:201:15)\n    at endReadableNT (_stream_readable.js:1130:12)\n    at processTicksAndRejections (internal/process/task_queues.js:83:17)","config":{"url":"https://discordapp.com/api/webhooks/<...MY URL....>","method":"post","data":"{}","headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json","User-Agent":"axios/0.19.2","Content-Length":2},"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1}} 

  

Maybe a revive of an old topic, however: 

You selected BitBucket, but I see you are using BitBucketServer (the selfhosted option), you need to select that instead. 

I've selected bitbucket server and still have this as a response:

{"message":"Request failed with status code 400","name":"Error",
"stack":"Error: Request failed with status code 400\n
at createError (/rbd/pnpm-volume/90fb9114-add2-4467-b406-16062c42fe85/node_modules/.registry.npmjs.org/axios/0.19.2/node_modules/axios/lib/core/createError.js:16:15)\n
at settle (/rbd/pnpm-volume/90fb9114-add2-4467-b406-16062c42fe85/node_modules/.registry.npmjs.org/axios/0.19.2/node_modules/axios/lib/core/settle.js:17:12)\n
at IncomingMessage.handleStreamEnd (/rbd/pnpm-volume/90fb9114-add2-4467-b406-16062c42fe85/node_modules/.registry.npmjs.org/axios/0.19.2/node_modules/axios/lib/adapters/http.js:236:11)\n
at IncomingMessage.emit (events.js:201:15)\n
at endReadableNT (_stream_readable.js:1130:12)\n
at processTicksAndRejections (internal/process/task_queues.js:83:17)",
"config":{"url":"https://discordapp.com/api/webhooks/<-- My Webhook Id -->",
"method":"post","data":"{\"embeds\":[{\"title\":\"Test Connection\",
\"description\":\"You have successfully configured Skyhook with your BitBucket Server instance.\",
\"fields\":[{\"name\":\"Test\"}],\"footer\":{\"text\":\"Powered by Skyhook\"},\"color\":2117761}]}",
"headers":{"Accept":"application/json, text/plain, */*",
"Content-Type":"application/json","User-Agent":"axios/0.19.2","Content-Length":216},
"transformRequest":[null],"transformResponse":[null],"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1}}

And I am receiving 502 in bitbucket testing connection. Am I doing something wrong?

Well... seems like https://skyhook.glitch.me is dead now

Try with skyhookapi.com they seemed to decommissioned glitch.me for good

Like # people like this

Any updates ? Discord webhooks still not working

Push

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events