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 0 0 0

Python / error eikon.eikonError.EikonError: Error code 504 | Server Error

Hi Refinitiv team, I am having an issue accessing Eikon via Python and I am getting

error eikon.eikonError.EikonError: Error code 504 | Server Error 

I am working in my company's private network with a proxy. Refinitiv Eikon Desktop 4.0.62 is working on my machine. If I am exiting my company's network and connect directly to the internet, my Python code is working. Codebook is also working.

I am using Anaconda/Python=3.9

I have tried the following:

  • Using a different Python library to access Eikon.
  • Using a different computer on my company's network.

I am still getting the same error.

I am using the following Python code

import eikon as ek
ek.set_app_key('f1b8969aad9a4895b1c678c734a6d294528aa949')  # app key replaced by my app key
df = ek.get_timeseries(["MSFT.O"],start_date="2023-01-01",end_date="2023-01-10")

Can you please help me troubleshoot this issue?

Best

#technologypython 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.

1 Answer

· Write an Answer
Upvotes
Accepted
83.1k 281 53 77

@stefan.buchinger

Thank you for reaching out to us.

If it is an HTTP status code, 504 is Gateway Timeout.

The HyperText Transfer Protocol (HTTP) 504 Gateway Timeout server error response code indicates that the server, while acting as a gateway or proxy, did not get a response in time from the upstream server that it needed in order to complete the request.

It could be network issues, such as proxy or firewall settings.

You can enable logging in the API by using the following code.

import eikon as ek
ek.set_log_level(1)
ek.set_app_key('f1b8969aad9a4895b1c678c734a6d294528aa949')  # app key replaced by my app key
df = ek.get_timeseries(["MSFT.O"],start_date="2023-01-01",end_date="2023-01-10")

You can also refer to the Eikon Data API and Refinitiv Data Library - Troubleshooting article.

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.