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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,632
Community Members
 
Community Events
185
Community Groups

VSCode extension is not able to fetch PR details

Edited
Oleksandr Kuzovych
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!
Apr 21, 2023

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"

screen-shot-1.png

 

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.2server version.

Extension error log:

screen-shot-2.png

Manual curl invocation produces the following result:

screen-shot-3.png

 

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

 

1 answer

0 votes
Becka Leyon
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!
Apr 23, 2023

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.

 

  • Extension version: 3.03
  • VS Code version 1.77.3
  • Bitbucket Server version 8.9.0

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]

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events