Hello, I'm using bitbucket cloud, and I clicked setup webhook from my review board installation on the repository I want to set the hook up for. When I clicked the link it took me to bitbucket services which is a deprecated feature of bitbucket and the link isn't even present anymore. I set that up, but bitbucket gives you a message about the functionality being deprecated and no longer working and to utilize the new webhook setup. I set the webhook up in the new method of bitbucket webhooks by using the URL and the request gets a 400 response saying the payload is empty. However, when I view the body payload in bitbucket it is not empty.
ype: repo:push Event time: a few seconds ago (Thursday, November 15th 2018, 3:54:31 pm) Response from http://mydomain.com/repos/3/bitbucket/hooks/{{uuid}}/close-submitted/ HTTP status: 400 Elapsed time: 38ms Request time: a few seconds ago (Thursday, November 15th 2018, 3:54:31 pm) Headers Content-Length 15 Content-Language en Vary Cookie,Accept-Language Server Apache/2.4.29 (Ubuntu) Connection close Date Thu, 15 Nov 2018 23:54:31 GMT X-Frame-Options SAMEORIGIN Content-Type text/html; charset=utf-8 Body Missing payload Here is the actual payload sent to review board by bitbucket with new webhooks method obfuscated for security { "push": { "changes": [ { "forced": false, "old": { "target": { "hash": "{{uuid}}", "links": { "self": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch/commit/{{uuid}}" }, "html": { "href": "https://bitbucket.org/DevTeam/ProjectCode-scratch/commits/{{uuid}}" } }, "author": { "raw": "MyName <DevTeam>", "type": "author" }, "summary": { "raw": "new file\n", "markup": "markdown", "html": "<p>new file</p>", "type": "rendered" }, "parents": [ { "type": "commit", "hash": "{{uuid}}", "links": { "self": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch/commit/{{uuid}}" }, "html": { "href": "https://bitbucket.org/DevTeam/ProjectCode-scratch/commits/{{uuid}}" } } } ], "date": "2018-11-15T23:53:41+00:00", "message": "new file\n", "type": "commit" }, "links": { "commits": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch/commits/test_branch_1" }, "self": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch/refs/branches/test_branch_1" }, "html": { "href": "https://bitbucket.org/DevTeam/ProjectCode-scratch/branch/test_branch_1" } }, "default_merge_strategy": "merge_commit", "merge_strategies": [ "merge_commit", "squash", "fast_forward" ], "type": "branch", "name": "test_branch_1" }, "links": { "commits": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch/commits?include={{uuid}}&exclude={{uuid}}" }, "html": { "href": "https://bitbucket.org/DevTeam/ProjectCode-scratch/branches/compare/{{uuid}}..{{uuid}}" }, "diff": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch/diff/{{uuid}}..{{uuid}}" } }, "truncated": false, "commits": [ { "hash": "{{uuid}}", "links": { "self": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch/commit/{{uuid}}" }, "comments": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch/commit/{{uuid}}/comments" }, "patch": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch/patch/{{uuid}}" }, "html": { "href": "https://bitbucket.org/DevTeam/ProjectCode-scratch/commits/{{uuid}}" }, "diff": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch/diff/{{uuid}}" }, "approve": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch/commit/{{uuid}}/approve" }, "statuses": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch/commit/{{uuid}}/statuses" } }, "author": { "raw": "MyName <>", "type": "author" }, "summary": { "raw": "new file9\n", "markup": "markdown", "html": "<p>new file9</p>", "type": "rendered" }, "parents": [ { "type": "commit", "hash": "{{uuid}}", "links": { "self": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch/commit/{{uuid}}" }, "html": { "href": "https://bitbucket.org/DevTeam/ProjectCode-scratch/commits/{{uuid}}" } } } ], "date": "2018-11-15T23:54:27+00:00", "message": "new file9\n", "type": "commit" } ], "created": false, "closed": false, "new": { "target": { "hash": "{{uuid}}", "links": { "self": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch/commit/{{uuid}}" }, "html": { "href": "https://bitbucket.org/DevTeam/ProjectCode-scratch/commits/{{uuid}}" } }, "author": { "raw": "MyName <>", "type": "author" }, "summary": { "raw": "new file9\n", "markup": "markdown", "html": "<p>new file9</p>", "type": "rendered" }, "parents": [ { "type": "commit", "hash": "{{uuid}}", "links": { "self": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch/commit/{{uuid}}" }, "html": { "href": "https://bitbucket.org/DevTeam/ProjectCode-scratch/commits/{{uuid}}" } } } ], "date": "2018-11-15T23:54:27+00:00", "message": "new file9\n", "type": "commit" }, "links": { "commits": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch/commits/test_branch_1" }, "self": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch/refs/branches/test_branch_1" }, "html": { "href": "https://bitbucket.org/DevTeam/ProjectCode-scratch/branch/test_branch_1" } }, "default_merge_strategy": "merge_commit", "merge_strategies": [ "merge_commit", "squash", "fast_forward" ], "type": "branch", "name": "test_branch_1" } } ] }, "repository": { "scm": "git", "website": "", "name": "ProjectCode-scratch", "links": { "self": { "href": "https://api.bitbucket.org/2.0/repositories/DevTeam/ProjectCode-scratch" }, "html": { "href": "https://bitbucket.org/DevTeam/ProjectCode-scratch" }, "avatar": { "href": "https://bytebucket.org/ravatar/%7B{{uuid}}%7D?ts=default" } }, "project": { "links": { "self": { "href": "https://api.bitbucket.org/2.0/teams/DevTeam/projects/ProjectCode" }, "html": { "href": "https://bitbucket.org/account/user/DevTeam/projects/ProjectCode" }, "avatar": { "href": "https://bitbucket.org/account/user/DevTeam/projects/ProjectCode/avatar/32" } }, "type": "project", "uuid": "{{{uuid}}}", "key": "ProjectCode", "name": "ProjectCodeula" }, "full_name": "DevTeam/ProjectCode-scratch", "owner": { "username": "DevTeam", "type": "team", "display_name": "DevTeam Dev Team", "uuid": "{{{uuid}}}", "links": { "self": { "href": "https://api.bitbucket.org/2.0/teams/DevTeam" }, "html": { "href": "https://bitbucket.org/DevTeam/" }, "avatar": { "href": "https://bitbucket.org/account/DevTeam/avatar/" } } }, "type": "repository", "is_private": true, "uuid": "{{{uuid}}}" }, "actor": { "username": "myuser", "display_name": "MyName", "account_id": "{{actid}}", "links": { "self": { "href": "https://api.bitbucket.org/2.0/users/myuser" }, "html": { "href": "https://bitbucket.org/myuser/" }, "avatar": { "href": "https://bitbucket.org/account/myuser/avatar/" } }, "type": "user", "nickname": "myuser", "uuid": "{{{uuid}}}" } } Is there a fix for this ? -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "Review Board Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
