For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 1 1

Code 500: Internal error

Hi,


Since yesterday, I'm unable to use the python API to pull data on my window desktop, while terminal itself appears to be functioning ok. Here's the example:


>>> import refinitiv.dataplatform.eikon as ek

>>> ek.set_app_key('XXXXXXXXXXXXXXXXXXXX')

>>> ek.get_timeseries(['VOD.L', 'GOOG.O'])

2020-10-27 07:54:02,668 - Session session - Thread 980 | MainThread

Error code 500 | Server Error: Internal Server Error - {"code":500,"message":"connect ECONNREFUSED 159.220.1.19:443","statusMessage":"Internal Server Error"}

Traceback (most recent call last):

File "<stdin>", line 1, in <module>

File "C:\Users\glswinprod\Miniconda3\envs\refinitiv\lib\site-packages\refinitiv\dataplatform\legacy\time_series.py", line 174, in get_timeseries

response = refinitiv.dataplatform.legacy.json_requests.send_json_request(TimeSeries_UDF_endpoint, payload, debug=debug)

File "C:\Users\glswinprod\Miniconda3\envs\refinitiv\lib\site-packages\refinitiv\dataplatform\legacy\json_requests.py", line 129, in send_json_request

raise_for_status(response)

File "C:\Users\glswinprod\Miniconda3\envs\refinitiv\lib\site-packages\refinitiv\dataplatform\legacy\json_requests.py", line 258, in raise_for_status

raise RDPError(response.status_code, error_msg)

refinitiv.dataplatform.errors.RDPError: Error code 500 | Server Error: Internal Server Error - {"code":500,"message":"connect ECONNREFUSED 159.220.1.19:443","statusMessage":"Internal Server Error"}

eikoneikon-data-apipythonworkspaceworkspace-data-apirefinitiv-dataplatform-eikonapi
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

Upvotes
Accepted
18k 21 12 20

Hi @philip.liu

Please follow these 2 steps:

1. upgrade the Eikon Data API to 1.1.7 (released on 16 Oct 2020)

pip install eikon --upgrade --no-cache-dir


2. Shutdown Eikon Desktop, then clear Eikon cache and launch the EIkon Desktop again


Now, please try your Eikon Data API again.

If it still does not work, please submit a ticket to Refinitiv Helpdesk at https://my.refinitiv.com/ and ask for the ticket to be escalated to the "Technical Support" group.


ahs.png (108.4 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.