Error code 404 | Client Error:

Hi, Im following the basic steps - I installed Python, I already have my Eikon Core, I got the App key and I try to run any request (data or headlines) but I get this error: Error code 404 | Client Error: <!DOCTYPE html>

Here is my code, its basic and comes from the Quickstart for this package:

import eikon as ek

ek.set_app_key('18........')

ek.get_news_headlines('R:LHAG.DE', date_from='2019-03-06T09:00:00', date_to='2019-03-06T18:00:00')

I also tried: headlines = ek.get_news_headlines('MSFT.O',10) and i also tried

df = ek.get_timeseries(["MSFT.O"],

start_date="2016-01-01",

end_date="2016-01-10")


But I always get that same error:

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>


Traceback (most recent call last):

File "<pyshell#2>", line 1, in <module>

ek.get_news_headlines('R:LHAG.DE', date_from='2019-03-06T09:00:00', date_to='2019-03-06T18:00:00')

File "C:\Users\admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\eikon\news_request.py", line 120, in get_news_headlines

result = eikon.json_requests.send_json_request(News_Headlines_UDF_endpoint, payload, debug=debug)

File "C:\Users\admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\eikon\json_requests.py", line 121, in send_json_request

_raise_for_status(response)

File "C:\Users\admin\AppData\Local\Programs\Python\Python37-32\lib\site-packages\eikon\json_requests.py", line 244, in _raise_for_status

raise EikonError(response.status_code, error_msg)

eikon.eikonError.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>


Any help would be much appreciated.

Pat


PS: I think the issue is with the Key - if I put any gibberish as the key I get the same error. Note sure why my key is not working... maybe cause i'm using an eikon core? However Im able to get data using the Excel API ...

Best Answer

  • Hi @pwb83

    I checked and see that you are on Eikon Core variant.

    Eikon Core does not include API features.

    Please contact your account manager to see any available options.

Answers