Create
cancel
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 workspace with identifier '{xxx}'

Hi all,

 

My Bitbucket API stops working due to the following error.

 

```

$ curl -s -X GET -H 'Content-Type: application/json' "https://api.bitbucket.org/2.0/repositories/%7B$accountid%7D?access_token=$accesstoken"

{"type": "error", "error": {"message": "No workspace with identifier '{xxxxx}'."}}

```

 

In fact, this error has happened on Jan 17, 2020, but the bug occurs again. Please see below.

https://community.atlassian.com/t5/Bitbucket-questions/No-workspace-with-identifier-xxx/qaq-p/1274594

 

May I ask if we have an alternative API protocol? e.g., API 3.0? so that we can have a stable API connection to Bitbucket? Thank you.

 

Best regards,

Jin

 

2 answers

1 accepted

1 vote
Answer accepted
Patrick Wolf Atlassian Team Apr 21, 2020

Hi,

Firstly, for GDPR purposes we removed support for username in any API last year. We added a non-personal "workspace id" field for all accounts that could be used in place of username.

Secondly, we are in the middle of transitioning from User and Team accounts to Workspaces. With this change we are updating some APIs as well to reflect this change. 

We didn't intend for this to be a breaking change so we are temporarily updating the /repositories API endpoint to maintain support for the user's account_id. This fix should be available soon.

Support for accessing repository information via the user's account_id will end when we remove support for the /users and /teams API endpoints later this year. Going forward the best way to retrieve any repository information is to use the workspace_id or the UUID. The account_id is and will be the best way to identify a specific user.

Regards,  

Patrick

Hi Patrick,

 

Many thanks for your information. It works to use workspaces. Thanks.

 

Best regards,

Jin

0 votes
Anna Atlassian Team Apr 20, 2020

Hi,

Please open a support ticket here and we can help you with this issue.

Thanks!

Hi Anna,

 

I just opened a ticket. See https://getsupport.atlassian.com/servicedesk/customer/portal/11/BBS-134515


Thank you.

Best regards,

Jin

Suggest an answer

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,886 views 0 7
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