It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket API error of “Missing valid JWT token” when requesting next page for variable

 I'm using v2 of the API**/**/pipelines_config/variables/


This works fine up to 10 variables, after which it gives a pagination link for 'next'.... Which is a v1 url...

And the v1 probably uses a different authentication as it gives me an error of:


{"error":{"message":"Unauthorized","detail":"Missing valid JWT token","data":{"key":"","arguments":{}}}}


It's incredibly frustrating working with this API...

1 answer

1 accepted

0 votes
Answer accepted

Hi Chris, 

Thank you for reporting this, I was able to reproduce this and will create a bug for it on our master site. 

However as a workaround here is the example of the request that you can use to get more than 10 variables:

under "pagelen=20"  you can specify how many results per page you would like to see. 

Hope this helps 



I've run into this same bug. Are there other workarounds?

I'm currently using basic authorization using an App Password, but if one can acquire a JWT token from just the App Password (Resource Owner Password Credentials grant?), I'd be happy to switch to that.

@Yana Bazulina

Can I get a reference to the bug for follow up purposes?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Atlassian supported Jenkins integration for Bitbucket Server

We’ve been building a plugin to integrate Bitbucket Server and Jenkins CI, and I’m excited to announce that our alpha is ready to download and install. It lets you seamlessly configure a Jenkins job ...

423 views 0 9
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you