Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 2 2

EikonError: Error code 404

Hi,

The following code stop working:

"

import eikon as ek

import pandas as pd

ek.set_app_key('*****')

ek_date = date.today()

brent = ek.get_timeseries(["LCOc1"], start_date = str(ek_date) , end_date = str(ek_date))['CLOSE'].values[0]

"

Now I have the following error:

"

EikonError: Error code 404 | Client Error: <!DOCTYPE html>

<html lang="en">

<head>

<meta charset="utf-8">

<title>Error</title>

</head>

<body>

<pre>Cannot POST /api/v1/data</pre>

</body>

</html>

"


Could you help ?


Thanks,


Antoine


eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
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
Accepted
32.2k 40 11 19

Hello @abedanian,

404 error means "Not found".

As you code was working, many of the common causes of 404 error do not apply in your case, the code is valid, your Eikon user is permissioned for API access, the cause is most likely within environment.

I would first review as per Eikon Data API(Python) Troubleshooting article, and if no obvious discrepancy is found, would next try restarting Eikon and machine running it, as per this previous discussion thread on the same error.

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
18.2k 21 13 21

Hi @abedanian

Please also upgrade the Eikon Data API version to 1.1.8 which released around 26th Nov.
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.