Error while calling the NEP backend: Invalid cursor in RDP News Postman

When use RDP to get the news-headline, it will display code of next page, and use cursor="next page" to get the next page headlines.

But when use Postman to request the same, it shows error "Error while calling the NEP backend: Invalid cursor", but it works fine from RDP playground.

Best Answer

  • Hi @gisele.wu01

    The format of the request that contains the cursor should look something like this:

    https://api.refinitiv.com/data/news/v1/headlines?cursor=<cursor token>

    Now, it's possible the POSTMAN collection you are using is not picking up the correct cursor. Within the 1st response, if there are additional headlines, the cursor would live within the 'meta' section of the response. You should see 2 related field:

    next: <next page cursor>

    prev: <previous page cursor>

    Might be helpful if you provide the news headline query.

Answers

  • Full error {"error":{"id":"b040c94b-d422-47a7-9b61-f49a055a8ee3","code":7,"message":"Error while calling the NEP backend: Invalid cursor"}}

  • I think I know why, the original request that contains all the back slash "/" needs to updated to "%2"