The Bitbucket core component BuildStatusService provides buildStatusService .search(buildStatusRequest, ...)
.
With BuildStatusPullRequestSearchRequest buildStatusRequest = new BuildStatusPullRequestSearchRequest.Builder(validatedExistingPullRequest)
the service throws the following exception:
c.a.p.r.c.e.j.ThrowableExceptionMapper Uncaught exception thrown by REST service: There is no repository with ID ds/0/h/76dc2bb7a8870da0d217/r/4020
com.atlassian.bitbucket.repository.NoSuchRepositoryException: There is no repository with ID ds/0/h/76dc2bb7a8870da0d217/r/4020
at com.atlassian.stash.internal.scm.git.mesh.DefaultErrorTranslator.translateNoSuchRepository(DefaultErrorTranslator.java:371)
at com.atlassian.stash.internal.scm.git.mesh.DefaultErrorTranslator.translate(DefaultErrorTranslator.java:90)
at com.atlassian.stash.internal.scm.git.mesh.DefaultErrorTranslator.translateIfKnownCause(DefaultErrorTranslator.java:267)
at com.atlassian.stash.internal.scm.git.mesh.DefaultErrorTranslator.maybeTranslate(DefaultErrorTranslator.java:55)
at com.atlassian.stash.internal.scm.git.mesh.AbstractFutureResponseObserver.maybeTranslate(AbstractFutureResponseObserver.java:203)
at com.atlassian.stash.internal.scm.git.mesh.AbstractFutureResponseObserver$ResponseFuture.translateCause(AbstractFutureResponseObserver.java:292)
at com.atlassian.stash.internal.scm.git.mesh.AbstractFutureResponseObserver$ResponseFuture.get(AbstractFutureResponseObserver.java:229)
at com.atlassian.stash.internal.scm.git.mesh.AbstractFutureResponseObserver.asResult(AbstractFutureResponseObserver.java:145)
at com.atlassian.stash.internal.scm.git.mesh.AbstractFutureResponseObserver.asResult(AbstractFutureResponseObserver.java:133)
at com.atlassian.stash.internal.scm.git.mesh.GrpcPullRequestClient.getCommits(GrpcPullRequestClient.java:202)
...
at com.atlassian.stash.internal.scm.git.mesh.MeshGitPullRequestCommandFactory$3.call(MeshGitPullRequestCommandFactory.java:129)
at com.atlassian.stash.internal.scm.git.mesh.MeshGitPullRequestCommandFactory$3.call(MeshGitPullRequestCommandFactory.java:123)
at com.atlassian.stash.internal.pull.DefaultPullRequestService.streamCommits(DefaultPullRequestService.java:1265)
...
at com.atlassian.bitbucket.internal.build.status.DefaultBuildStatusService.extractCommitsFromPullRequest(DefaultBuildStatusService.java:528)
at com.atlassian.bitbucket.internal.build.status.DefaultBuildStatusService.searchInternal(DefaultBuildStatusService.java:363)
at com.atlassian.bitbucket.internal.build.status.DefaultBuildStatusService.search(DefaultBuildStatusService.java:324)
If the pull request is fetched and validated via pullRequestService.getById(repoId, prId)
- why does the MeshGitPullRequestCommandFactory
throw an error when fetching commits?
Any help would be appreciated.
Thanks and kind regards, Ulrich