Stash API issue a 401 You are not currently licensed to use Stash. Please contact your administrator to resolve this issue

bash> curl  -k -u username:***** -H "Content-Type: application/json" -X GET https://stash.xxx.local/rest/api/1.0/projects
{"errors":[{"context":null,"message":"You are not currently licensed to use Stash.\nPlease contact your administrator to resolve this issue.","exceptionName":null}]}%

You need special rights/icense for using the API? I have no license problems in the web UI

2 answers

1 accepted

0 votes
Accepted answer

Hi Julien,

You definitely don't need special rights, although you do need to be a licensed/valid user. Do you get the same error when you fetch from git? If you login to the website again (maybe use a different browser rather than logging out) do you get an error?

Cheers,

Charles

We have an evaluation license and everything is fine if I disconnect/reconnect on the web UI and I can push using git CLI without troubles.

We have two instance (with evaluation licences), a v2.8.3 everything is fine and a v2.9.4 which produce a 401 error on the API

Found the problem, the right configuration was changed during the two tests, and once the admin fixed it. it's working. Thanks for the support.

Glad to hear it Julien. We were scratching our heads at that one. :)

We have an evaluation license and everything is fine if I disconnect/reconnect on the web UI and I can push using git CLI without troubles.

We have two instance (with evaluation licences), a v2.8.3 everything is fine and a v2.9.4 which produce a 401 error on the API

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

198 views 3 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you