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