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

Error code 2504 | UDF Core request failed. Gateway Time-out

Hi,


I have a script running everyday at 8AM Dubai time. Sometimes on Tuesday or Wednesday I get this Gateway Time-out error. After I run again 2-3 times more it will eventually works and not produce the error anymore. I believe it is not because of the RIC limit calls because the same script works effortlessly on most other days. May I know the source of this issue? Is there a downtime I should know about?



eikon-data-apipythonworkspace#technology#product
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
6.8k 21 3 6

Hi @Ikmal Azman


Without more information about your workflow, it will be difficult for me to investigate. However, I can let you know that we advise coding defensively in these instances. I manufactured an error in the code below to exemplify what I mean:


                
  1. import refinitiv.data as rd
  2. from refinitiv.data.content import fundamental_and_reference
  3.  
  4. rd.open_session()
  5.  
  6. request = fundamental_and_reference.Definition(
  7. universe=['LSEG.L'],
  8. fields=['ASK'])


                
  1. try:
  2. response = request.get_data()
  3. except Exception as e:
  4. print(e.__dict__)


                
  1. try:
  2. response = request.get_data()
  3. except Exception as e:
  4. if e.__dict__['code'] == -1:
  5. print("The Error Is -1")


1716804033978.png


As you can see, you can use a try and if loop to come to a similar functionality to what you asked. Please let me know if this makes sense.

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.