question

Upvotes
Accepted
16 0 0 1

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.

#technologyrdp-apinews
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvote
Accepted
17.1k 80 39 63

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
16 0 0 1

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

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvote
16 0 0 1

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

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.