Share via

LinkedIn API pagination error - geoTypeahead API

Montana Angel 6 Reputation points
2021-11-15T13:58:04.757+00:00

Hello,

The geoTypeahead API is returning the following error when fetching the last page of the query (params -> q=search&query=*&count=1000&start=1000)

{'message': 'com.linkedin.restli.client.RestLiResponseException: Response status 400, serviceErrorMessage: Exceeds the pagination limit. Please adjust the pagination parameter.',  
 'status': 400  

The expected behaviour is that the API gracefully handles the last page even when the fetch count is greater that the remaining items. If we knew the total number of results we could also handle it on the client side by changing the count parameter on the last fetch, but it turns out the 'total' field is also wrong (it's always zero).

Thanks for your time,
Angel

Community Center | Not monitored
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.