Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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?

2 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?

Push

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

117 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you