You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I am trying to push files to BitBucket using Python.
I am getting a message that says there is no such workspace, however there is.
Hi @[deleted] welcome to the community.
Have a look here:
What is a Repo Slug
Thank you very much for the warm welcome and the answer. I tried a dash instead of the space, however it then gives me this error:
{"type": "error", "error": {"message": "No workspace with identifier 'Comma_Group'."}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @[deleted] Maybe try this and then use the UUID that is returned for the workspace.
api-group-workspaces/#api-user-permissions-workspaces-get
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Craig Nodwell when I run the code it gives me this error:
"error": { "detail": "There is no API hosted at this URL.\n\nFor information about our API's, please refer to the documentation at: https://developer.atlassian.com/bitbucket/api/2/reference/", "message": "Resource not found" }, "type": "error" }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what gets returned from this? no extras
https://api.bitbucket.org/2.0/workspaces
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
and your string above I think your missing the users statement
https://api.bitbucket.org/2.0/users/Roa......
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just ran the code and did not add anything except for the access token, the error I am getting is the following:
--------------------------------------------------------------------------- JSONDecodeError Traceback (most recent call last) <ipython-input-30-c7119a419de3> in <module> 18 19 print (response.text) ---> 20 print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": "))) ~/opt/anaconda3/lib/python3.8/json/__init__.py in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) 355 parse_int is None and parse_float is None and 356 parse_constant is None and object_pairs_hook is None and not kw): --> 357 return _default_decoder.decode(s) 358 if cls is None: 359 cls = JSONDecoder ~/opt/anaconda3/lib/python3.8/json/decoder.py in decode(self, s, _w) 335 336 """ --> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 338 end = _w(s, end).end() 339 if end != len(s): ~/opt/anaconda3/lib/python3.8/json/decoder.py in raw_decode(self, s, idx) 353 obj, end = self.scan_once(s, idx) 354 except StopIteration as err: --> 355 raise JSONDecodeError("Expecting value", s, err.value) from None 356 return obj, end JSONDecodeError: Expecting value: line 1 column 1 (char 0)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When I run the code with no extras I get the below error:
--------------------------------------------------------------------------- JSONDecodeError Traceback (most recent call last) <ipython-input-31-547a79bb9c9d> in <module> 17 ) 18 ---> 19 print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": "))) ~/opt/anaconda3/lib/python3.8/json/__init__.py in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) 355 parse_int is None and parse_float is None and 356 parse_constant is None and object_pairs_hook is None and not kw): --> 357 return _default_decoder.decode(s) 358 if cls is None: 359 cls = JSONDecoder ~/opt/anaconda3/lib/python3.8/json/decoder.py in decode(self, s, _w) 335 336 """ --> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 338 end = _w(s, end).end() 339 if end != len(s): ~/opt/anaconda3/lib/python3.8/json/decoder.py in raw_decode(self, s, idx) 353 obj, end = self.scan_once(s, idx) 354 except StopIteration as err: --> 355 raise JSONDecodeError("Expecting value", s, err.value) from None 356 return obj, end JSONDecodeError: Expecting value: line 1 column 1 (char 0)
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.