Time out error in codebooks

An error occurred while requesting URL('http://localhost:9000/api/udf').
ReadTimeout('timed out')

I've been getting this error when running any code using the refinitiv.data api for python (in both my own notebooks and the unchanged example notebooks). Happens specifically when calling functions on rd such as rd.open_session() and rd.get_data().

I don't think it's anything on my end, as my connection is stable and I'm running code that worked this morning. Any tips?

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @SebastienF

    Thank you for reaching out to us.

    It could be a HTTP request timeout. You may increase its value via a configuration or coding.

    Configuration

    { 
      
      "http": {
        "request-timeout": 6000
      },
      "logs": {
        "level": "debug",
        "transports": {
          "console": {
            "enabled": false
          },
          "file": {
            "enabled": true,
            "name": "lseg-data-lib.log"
          }
        }
      }, 
    

    Coding

    config = rd.get_config()
    config.set_param("logs.transports.console.enabled", True)
    config.set_param("logs.level", "debug")
    config.set_param("logs.transports.file.name", "lseg-data-lib.log")
    config.set_param("http.request-timeout", 6000)
    
    rd.open_session()
    

    You may need to enable the debug log to verify the problem is.