question

Upvotes
Accepted

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 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
23.1k 60 15 21

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 512.0 KiB each and 1.0 MiB total.

Raised a service ticket #10741457

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.