Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

404 Not Found when using paged API on projects

Figaw October 26, 2017

When I use the API to procure the projects on our server, I receive the default 25.

When I try to request using the nextPageStart, I get a "404 not found", when I try to up the limit on the initial request, I get a "404 not found".

It seems it's breaking whenever I add paging-parameters to my get-query.

I'm using these docs for the API
https://developer.atlassian.com/static/rest/bitbucket-server/4.14.4/bitbucket-rest.html#idm46478324103840

This for the paging
https://developer.atlassian.com/static/rest/bitbucket-server/4.14.4/bitbucket-rest.html#paging-params

1st attempt

My query looks like this:
https://bitbucket.ourcompanyname.com/rest/api/1.0/projects
and it returns 25 projects and isLastPage = false, nextPageStart = 90

My next query looks like this;

https://bitbucket.ourcompanyname.com/rest/api/1.0/projects?start=90

Gives 404 not found.

 

2nd attempt

My query looks like this:
https://bitbucket.ourcompanyname.com/rest/api/1.0/projects?limit=1000

Gives 404 not found.

 

We're using V4.14.4 of Bitbucket Server

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events