Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.9.6
TAGS
AUG Leaders

Atlassian Community Events