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

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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

634 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot