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?