Adding discord webhooks to bitbucket repo

powns
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 1, 2018

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?

5 answers

1 accepted

12 votes
Answer accepted
ErunamoJAZZ
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 31, 2018

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/

xt449
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 23, 2018

skyhook is the perfect solution for me.

Like # people like this
urinal-cake October 24, 2018

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
urinal-cake October 24, 2018

Okay, so Skyhook doesn't quite work with Jira at the moment. However, definitely voting up this:
https://feedback.discordapp.com/forums/326712-discord-dream-land/suggestions/12454674-discord-as-a-replacement-to-slack-for-developers

Like DynamicBLUE likes this
powns
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 4, 2019

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

Like # people like this
Jacob Chappelle
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 14, 2020

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

Like # people like this
Noxaren
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 7, 2020

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}} 

  

hoothootmen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 14, 2020

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. 

Yanislav Vasilev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 12, 2021

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?

3 votes
Dmitry Mokhov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 14, 2022

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

Yanislav Vasilev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 14, 2022

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

Like # people like this
0 votes
KonstantinK
Contributor
October 31, 2023

You can try MyRepoBot for Discord, it allows you to get updates from Bitbucket (as well as Github, Gitlab) in your Discord space: https://discord.com/api/oauth2/authorize?client_id=1166718780311879750&permissions=0&scope=applications.commands%20bot 

0 votes
Lead Web Dev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 10, 2022

Any updates ? Discord webhooks still not working

Myrat
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 25, 2023

skyhookapi.com worked for me as suggested by @Yanislav Vasilev 

0 votes
Doniel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 3, 2018

Push

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events