Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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!
Oct 09, 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.
Oct 09, 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