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

Chris Stryczynski May 04, 2018

 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
Yana Bazulina Atlassian Team May 04, 2018

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 



Andrew Regier Jul 18, 2018

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.

Andrew Regier Jul 18, 2018

@Yana Bazulina

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

Yana Bazulina Atlassian Team Jul 19, 2018

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,778 views 1 18
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