Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

VS Code: Error creating pull request - Cannot read property 'site' of undefined

Barnett Temwa Msiska February 3, 2021

I am trying to make a pull request from Jira and Bitbucket (Official) VS Code Extension but get the error: "Error creating pull request - Cannot read property 'site' of undefined"

I am logged into Bitbucket from VS Code Extension and I do not know what the error means. I am working on Linux mint 20.1. Could someone assist.

Regards,

Barnett

5 answers

4 votes
Dave Carlson June 6, 2023

i was running into this issue when i tried to create a PR into the 'main' branch (for example).

if i change my approach to make the PR into 'origin/main' then the PR is created without issue.

1 vote
Spyros Psarras June 6, 2023

Um, except of "watch", can we do anything else to solve this?

 

Debug:

```

[2023-06-06 13:15:03:619] curl -X GET -H "User-Agent:atlascode/2.x axios/0.19.2" -H "Content-Type:application/json" -H "Authorization:Bearer XXX "https://api.bitbucket.org/2.0/repositories/XXX/proxy/commits?include=BACKLOG-2702-PRX---add-logging&exclude=main&pagelen=100"
[2023-06-06 13:15:03:619] ----------------------------------------------------------------------
[2023-06-06 13:15:04:332] Error: error fetching commits: TypeError: Cannot read properties of undefined (reading 'length')
```
Did you guys change the API without changing the extension?
0 votes
Douglas H. Silva June 28, 2023

Change the destination branch to Origin/Master which will resolve it.

Destination Branch
Master = Local
Origin/Master = Bitbucket

Holly Williams October 9, 2023

Hi Douglas, where do we change the destination branch? I've searched through all the settings for the Jira extension, in Jira itself, and it Bitbucket, and I can't find a place to change this anywhere. Thanks for your help!

0 votes
Cedric Bernard September 3, 2021

Facing also the same issue. Is there already an existing issue to track this?

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 8, 2021

Hi Barnett,

You can report this issue and request for assistance here:

This is the issue tracker of the repo for VS Code extension, and it is monitored by the developers of the extension.

Kind regards,
Theodora

Like # people like this
Praful.Shah March 24, 2023

any update on this issue?

Like # people like this
Rafael Barreto April 4, 2023

I'm facing the same problem

Like # people like this
unthar April 9, 2023

I have the same issue running on Arch Linux. If I create a Pull Request in the browser then I can approve, merge, etc. But if I try to create a Pull Request in the VS Code extension it will never populate the Source nor Destination branches whether I use the dropdown or type in the branches.

Like # people like this
Le Phuong April 21, 2023

Same issue when trying to create a new PR from the extension.
Screenshot_20230421_162908.png

And the issues page of the extension is no longer accessible.

Like Daniel John Baker likes this
Francois Desrochers April 24, 2023

Same issue here.

Siva kilaru April 25, 2023

count one more.. Same issue when trying to create a new PR from the extension.

Arslan Tarar April 26, 2023

Same issue here 

Like Marc Anderson likes this
Adam Cooke April 28, 2023

Dito

Michael Nemni May 1, 2023

same here

Dominic Saladin May 2, 2023

I just switched back to VS Code 1.75.1 and installed Atlassian 3.0.2, then everything works fine.

Not ideal, but works for now.

magdy elmansy May 9, 2023

i have the same issue 

Daniel Ward May 19, 2023

Same here.

Dave Carlson May 24, 2023

Same same. Issue creating PR in VS Code from Atlassian Plugin.

lgLindstrom May 27, 2023

I also have this issue

chris.roberts May 29, 2023

As do I

Anna Ochab-Marcinek June 6, 2023

Same here

Spyros Psarras June 6, 2023

Um, except of "watch", can we do anything else to solve this?

 

Debug:

```

[2023-06-06 13:15:03:619] curl -X GET -H "User-Agent:atlascode/2.x axios/0.19.2" -H "Content-Type:application/json" -H "Authorization:Bearer XXX "https://api.bitbucket.org/2.0/repositories/XXX/proxy/commits?include=BACKLOG-2702-PRX---add-logging&exclude=main&pagelen=100"
[2023-06-06 13:15:03:619] ----------------------------------------------------------------------
[2023-06-06 13:15:04:332] Error: error fetching commits: TypeError: Cannot read properties of undefined (reading 'length')
```
Did you guys change the API without changing the extension?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events