session connection timeout

Options

I trying to use lseg-data package in python i inserted my credentials and API Key :
session = rd.session.platform.Definition(
app_key = credentials.APP_KEY,
grant = rd.session.platform.GrantPassword(
username = credentials.RDP_LOGIN,
password = credentials.RDP_PASSWORD
),
signon_control=True
).get_session()

And then session.open()

However when i try to open the seesion i'm not able to and got a session connection timeout

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @Varun_KC

    Thank you for reaching out to us.

    It looks that the library can't connect to the endpoint due to the connection timeout.

    image.png

    You can try to increase the HTTP timeout by running the following code before creating a session.

    config = rd.get_config()
    config.set_param("http.request-timeout", 6000)