question

Upvotes

Error message: Failed to fetch

I am getting "Error message: Failed to fetch" when using the endpoints below. Content Team confirmed that data is available.


https://api.refinitiv.com/user-framework/mobile/fund-service/v1/fund/top-holdings/LP40189339

https://api.refinitiv.com/user-framework/mobile/overview-service/v1/fund/top-holdings/LP40189339

1638438594547.png


rdp-apirefinitiv-data-platformrdp
1638438594547.png (276.9 KiB)
icon clock
10 |1500

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

1 Answer

Upvotes
13k 32 12 18

Hi @Michael Ronald Cortez.Espinosa ,

There seems to be an issue with browser when using this in the API playground. Seems like this RDP endpoint does not correctly implement the OPTIONS request, which is causing it to fail in the browser.

You can however try and get data from this using the following python code:

import http.client

conn = http.client.HTTPSConnection("api.refinitiv.com")
payload = ''
headers = {
    'Authorization': 'Bearer eyJ0eXAiOiJhdCtq....X_tEfBA'
}
conn.request("GET", "/user-framework/mobile/fund-service/v1/fund/top-holdings/LP40189339", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))


I will raise a service ticket for this issue.

icon clock
10 |1500

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

Raised a service ticket #10741457

Click below to post an Idea Post Idea