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

Bug? Getting 500 Server error when creating a new webhook via API 2.0 Edited

Hi Folks,

when sending a webhook create request with a POST request to

https://api.bitbucket.org/2.0/repositories/{account}/{repoSlug}/hooks

and a body of

{
"description": "push hook",
"url": "https://server.com/api/public/webhooks",
"active": true,
"events": [
"repo:push"
]
}

using basic auth, I receive the response 

{
"type": "error",
"error": {
"message": "Something went wrong",
"id": "6cf1e136e03f4d4cb9d485e1ca203f07"
}
}

This started today, last week it was working with the same request and body.  The {account}, {repoSlug} variables as well as the basic auth can be assumed to be working, since they work for other requests, like for example: 

repositories/{account}/{repoSlug}/{projectName}/refs/branches

 

I suppose I don't run into rate limits (i was manually testing adding and removing the hooks, but we're talking of at most 20 requests, and all of them failed with the above error) , but if it was the only possibility, how could I notice?

I'm using bitbucket cloud @home and bitbucket server @Work.

Edit: deleting a hook works with anything else being same (via DELETE on https://server.com/api/public/webhooks/{hookId})

Edit: the API key has permissions to create hooks

Another edit: submitted a bug report for this

0 answers

Suggest an answer

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,926 views 0 7
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