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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
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.

Upvotes
Accepted
23k 22 9 14

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 5.0 MiB each and 10.0 MiB total.

Upvotes
18k 21 12 20

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea