Bitbucket Cloud: "Something went wrong" when creating a pull request
You pick the branches, press Create pull request, and Bitbucket Cloud shows "Something went wrong" and goes no further. Atlassian says the most likely cause is a browser add-on that intercepts the request that creates the pull request, and names a common case: a branch with the term "ad" in its name, which an ad blocker stops (Atlassian's knowledge base, Error creating pull request in browser).
Try it without the add-ons
- Turn off the browser's add-ons, clear its cache and create the pull request again, or use a private window, where add-ons stay off unless you allowed them there. This is Atlassian's first step.
- If it works there, turn the add-ons back on one at a time. When it is the ad blocker, let it allow bitbucket.org.
- Or keep the blocker and change the name: push the same commits to a branch without "ad" in its name and create the pull request from that one.
git push origin HEAD:feature/new-name
To create it without the browser: Pull Request Inbox for Bitbucket, a plugin for JetBrains IDEs, adds Git → Create Bitbucket Pull Request…, which creates the pull request from your current branch straight through Bitbucket's API, so no browser extension sits in between.
From Sourcetree: "Error loading source branch"
Creating the pull request from Sourcetree opens a page that says "Something went wrong" with "Error loading source branch:" and a source written as workspace/repository:commit:branch. In the community question Something went wrong while creating your pull request from SourceTree, the address Sourcetree builds failed while the same branch opened fine from bitbucket.org, so people push from Sourcetree and start the pull request on the website (Create > Pull request, or the branch's page).
Not the browser
When Atlassian support answered the same message in Can't Create a PR with Bitbucket Website or open Branches, they asked first whether the user had write access to the branch, since branch permissions can stop it, and suggested another browser. Ask a repository admin whether a branch restriction leaves you out.
Find the failing request
If none of that helps, Atlassian asks for the request itself: open the browser's developer tools on the Network tab, create the pull request again, and select the request that failed, usually with a 400 or 500 status, to see its response. Save a HAR file of the attempt for Atlassian support. A HAR file can hold your session cookies, so send it to support rather than post it in a public thread.
This is about creating the pull request. If the pull request exists and its diff fails to load, that is usually a size limit (Bitbucket's diff limits).
Bitbucket pull requests in IntelliJ IDEA
Pull Request Inbox for Bitbucket, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, lists the pull requests that wait for your review in an IDE tool window, with their diffs and discussions. Git → Create Bitbucket Pull Request… creates a pull request, or a draft, from your current branch with the repository's default reviewers, and warns first if the branch or some of its commits are not on Bitbucket yet. The review inbox, diffs, discussions and merge checks are free; creating, approving, commenting and merging are Pro, with a 30-day trial. It also works with Bitbucket Data Center (beta).
Get it on JetBrains Marketplace
Bitbucket, Atlassian and Sourcetree are trademarks of Atlassian; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by Atlassian or JetBrains.
More: git push without "Create pull request for" · 409 when creating a pull request (Data Center) · pre-receive hook declined · Bitbucket pull requests from the command line · 日本語