cosmin / stashy

Python API client for the Atlassian Stash REST API
Other
232 stars 147 forks source link

Getting GenericException: Unknown error: 501 #176

Open giovannirescia-upwork opened 2 years ago

giovannirescia-upwork commented 2 years ago

Hi, I am trying to use the API but am getting a 501 error for anything repo-related thing I am trying.

~/anaconda3/envs/py36/lib/python3.6/site-packages/decorator.py in fun(*args, **kw)
    230             if not kwsyntax:
    231                 args, kw = fix(args, kw, sig)
--> 232             return caller(func, *(extras + args), **kw)
    233     fun.__name__ = func.__name__
    234     fun.__doc__ = func.__doc__

~/anaconda3/envs/py36/lib/python3.6/site-packages/stashy/errors.py in response_or_error(fn, *args, **kw)
     61 def response_or_error(fn, *args, **kw):
     62     response = fn(*args, **kw)
---> 63     maybe_throw(response)
     64     try:
     65         return response.json()

~/anaconda3/envs/py36/lib/python3.6/site-packages/stashy/errors.py in maybe_throw(response)
     48             except ValueError:
     49                 e.content = response.content
---> 50             raise e
     51 
     52 

GenericException: Unknown error: 501()

Running this on a conda env with python 3.6 and stash 0.6