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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

11 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 cmh1448 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. 

Push

Suggest an answer

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

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

475 views 5 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