Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

No pull request exists with ID

I'm getting emails to say that a pull request has been created. When I follow the link, it tells me that the pull request doesn't exist. The pull requests were created by our own commit hook plugin - logging shows that the API call succeeds without any exceptions being thrown. It used to work, but we have regularly encountered this ever since we upgraded BitBucket Server to version 5.3. If I manually create the same PR via the UI, it works as expected.

We see these in the logs:

atlassian-bitbucket.log:2017-09-26 07:02:29,927 ERROR [AtlassianEvent::thread-1] smartling @1YM4EYXx422x865876x0 "POST /scm/tran/circ-ui-msi.git/git-receive-pack HTTP/1.1" c.a.s.i.e.AsyncBatchingInvokersTransformer There was an exception thrown trying to dispatch event 'com.atlassian.bitbucket.event.pull.PullRequestOpenedEvent[source=com.atlassian.stash.internal.pull.DefaultPullRequestService@271fae35]' for the invoker 'SingleParameterMethodListenerInvoker{method=public void com.atlassian.stash.internal.jira.index.impl.IndexEventListener.onPullRequestOpened(com.atlassian.bitbucket.event.pull.PullRequestOpenedEvent), listener=com.atlassian.stash.internal.jira.index.impl.IndexEventListener@725c0f68}'

atlassian-bitbucket.log:2017-09-26 07:02:29,960 WARN [threadpool:thread-4] smartling @1YM4EYXx422x865876x0 "POST /scm/tran/circ-ui-msi.git/git-receive-pack HTTP/1.1" n.t.b.api.PullRequestListener InternalPullRequest{id=7709, title=Translation changes}: Mergeability check failed; pull request refs may not be up-to-date
atlassian-bitbucket.log:com.atlassian.bitbucket.pull.NoSuchPullRequestException: No pull request exists with ID 60 in CIR/circ-ui-msi.

If anyone has any suggestions on how we might resolve the issue, they would be gratefully received.

Some more details:

  • We're creating a PR from a fork back to its origin repo. The fork has syncing enabled.
  • We successfully use the same plugin across many other repos configured in the same way - this appears to be specific to just one repo. As far as I can tell, it isn't configured any differently.


1 answer

0 votes
peter Atlassian Team Mar 27, 2018

Hi Alex, suggest you raise a support request -

Is there any other info on this?

From what I remember, the issue turned out to be across all repos, not a specific one as I described here. We never got to the bottom of it - looked like there was something dodgy going on with transaction boundaries, but support didn't want to know unless we could reproduce it through the UI. Anyway, the issue went away some time later with the next major release of BitBucket server.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,514 views 4 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you