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

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
Posted in Bitbucket

How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you'll are using the integration and how it's helping your t...

170 views 0 2
Join discussion

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