Hello, community,
I have encountered the following problem: the extension manages to login successfully and bring the list of existing PRs. When I try to unfold one of PRs it ends up with an
"Error: fetching pull request details failed"
While investigating the extension logs I found that it uses a deprecated REST API call:
/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/tasks
As it can be read here it is Deprecated since 7.2. server version.
Extension error log:
Manual curl invocation produces the following result:
Extension version: 3.0.3
VSCode version: 1.77.3
Platform: Ubuntu 20.04
Bitbucket server version: 8.2.1
Does anyone have an idea how to fix this?
Thanks
Hi,
Following the workaround for tasks "Blank pages":
VSCode plugin does shows available jira issues but page is blank
I have done a similar workaround for the fetch PR details issue.
In:
~/.vscode/extensions/atlassian.atlascode-3.0.9/build/extension/extension.js
Replace:
this.client.get(`/rest/api/1.0/projects/${t}/repos/${n}/pull-requests/${e.data.id}/tasks`);
With:
this.client.get(`/rest/api/1.0/projects/${t}/repos/${n}/pull-requests/${e.data.id}/blocker-comments`);
I hope you find it helpful.
This worked for me! Thanks!
I also had to change one instance of `/tasks/count/` with `blocker-comments?count=true` for Details in the PR explorer to work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was excited to use the PR integration into vscode. Then I'd never have to use bitbucket online ever again. Alas: this bug.
How do I open a jira ticket against this?
Alas: this other bug:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same problem. :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can we hope that this bug will be fixed one day?
It even seems that the correction has been coded and is awaiting merge: PR-1068
In the meantime, the VS Code extension is unusable...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same problem:
Bitbucket serv version: 8.9.11
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same problem. We moved to Bitbucket v8.9 from version 7 and the extension stopped working with the same error codes, mentioned above :( Any plan for fixing this issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The same on
Atlassian Bitbucket v8.14.0
VS Code & extension version LST
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am experiencing this same issue after our Bitbucket server test instance was upgraded to 8.9.0. Our production instance is still running Bitbucket Server 7.21.5, and I do not see those errors when working with production.
I try to create a new pull request, and get this in the extension's GUI after clicking the "CREATE PULL REQUEST" button:
Something went wrong
context:null
message:"Tasks are now managed using Comments with BLOCKER severity. Use /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}/blocker-comments?count=true instead."
exceptionName:null
The "Create pull request" window remains open, but is not able to update, and all the fields just spin.
The pull request is created on the Bitbucket server, however, and I get a notification from the extension right in VS Code, and the pull request title shows up in my list/tree. But the pull request doesn't open.
This is the error output log from the VS Code extension:
[2023-04-22 19:54:08:669] ----------------------------------------------------------------------
[2023-04-22 19:54:08:669] curl -X GET -H "User-Agent:atlascode/2.x axios/0.19.2" -H "Content-Type:application/json" -H "Authorization:Basic blahblahblah==" "https://our-bbtestserver.com/rest/api/1.0/projects/proj/repos/practice-test/pull-requests/1/tasks"
[2023-04-22 19:54:08:670] ----------------------------------------------------------------------
[2023-04-22 19:54:08:825] Error getting URL: https://our-bbtestserver.com/rest/api/1.0/projects/proj/repos/practice-test/pull-requests/1/tasks [object Object]
[2023-04-22 19:54:08:825] error fetching pull request details [object Object]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This faulty call is done here : src/bitbucket/bitbucket-server/pullRequests.ts.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.