I am new to BitBucket Server and I have a lot of problems now with playing around its API.
I have searched on Internet how to use BitBucket Server API in Python and some told me to use Stash. However, when I try this in Python, I keep get 503 Service Unavailable.
import stashy
stash = stashy.connect("http://localhost:7990/stash", "USERNAME", "PASSWORD")
stash.admin.groups.list()
Traceback (most recent call last):
File "/PATH/foo.py", line 5, in <module>
stash.admin.groups.list()
File "/PATH/miniconda3/lib/python3.6/site-packages/stashy/helpers.py", line 124, in list
return list(self.all(filter))
File "/PATH/miniconda3/lib/python3.6/site-packages/stashy/helpers.py", line 74, in paginate
maybe_throw(response)
File "/PATH/miniconda3/lib/python3.6/site-packages/stashy/errors.py", line 50, in maybe_throw
raise e
stashy.errors.GenericException: Unknown error: 503(Service Unavailable)
Does anyone have any ideas on what's happening here? Many thanks.
BTW, my ultimate goal is to issue comments on pull request in BitBucket Server using Python.