Next link from CQL Search REST API throwing error 404

Shweta Gulati
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 15, 2022

When making a call to next link retrieved in response of API , 404 is returned

API used - 
https://developer.atlassian.com/cloud/confluence/rest/api-group-content/#api-wiki-rest-api-content-search-get

We are able to traverse 80+ batches following the next link.
On one of the next links - 


/rest/api/content/search?next=true&cursor=<real_cursor_value>%3D%3D&expand=restrictions.read.restrictions.group%2Crestrictions.read.restrictions.user%2Cancestors%2Chistory.contributors.publishers.users%2Chistory%2Cbody.view%2Chistory.lastUpdated%2Cspace&limit=50&start=4350&cql=type+in+%28+page%2C+blogpost%29+and+type+in+%28page%2C+blogpost%29,

we are getting 404 with response
{
"statusCode": 404,
"data": {
"authorized": false,
"valid": false,
"errors": [
{
"message": {
"translation": "Cannot find content <page: 91943000 v.1>. Outdated version/old_draft/trashed? Please provide valid ContentId.",
"args": []
}
}
],
"successful": false
},
"message": "com.atlassian.confluence.api.service.exceptions.NotFoundException: Cannot find content <page: 91943000 v.1>. Outdated version/old_draft/trashed? Please provide valid ContentId."
}

We are unable to traverse further.
The expectation is to only find latest version of the content.
How do we make progress?


 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events