The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

getting bad request -400 during merge pull request

Kumar22, Dinesh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 9, 2023

Hi All,

we have recently upgraded to BB datacenter (8.9.6) from BB - Server (7.17). In jenkins pipeline we are running curl command to run merge pull request. In earlier version the same command format is working fine but in Data center getting 400 Bad request.

curl --header 'Accept: application/json' --header 'Content-Type: application/json' --header 'X-Atlassian-Token: nocheck' --user <username:pwd> -X POST 'https://{bitbucket-host-url}/rest/api/latest/projects/<project-key>/repos/<repo>/pull-requests/<pullreq-id>/merge?version=0'

 

Please help with the issue.

 

NOTE: Get pull requests API is working fine.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 9, 2023

Hi,

You should look at the Bitbucket Server log file, which you can find at <BitbucketHome>/log/atlassian-bitbucket.log on each node.

Cheers,
Christian

Premier Support Engineer
Atlassian

DEPLOYMENT TYPE
SERVER
VERSION
8.9.6
TAGS
AUG Leaders

Atlassian Community Events