RDP API Session Error

File ~/.local/lib/python3.9/site-packages/refinitiv/data/_core/session/_session_provider.py:127, in _make_platform_session_provider_by_arguments(session_name, app_key, signon_control, deployed_platform_host, deployed_platform_username, dacs_position, dacs_application_id, grant, proxies, app_name)    124 default_session_config = configure.get(configure.keys.platform_session("default"), {})    126 if isinstance(session_config, dict) and len(session_config) == 0:--> 127     raise ValueError(f"Session name: {session_name} is invalid or session_name object is empty")    129 arguments = {    130     "app-key": app_key,    131     "app-name": app_name,   (...)    136     DEPLOYED_PLATFORM_DACS_ID_CONFIG_KEY: dacs_application_id,    137 }    138 filtered_arguments = {key: value for key, value in arguments.items() if value is not None}

ValueError: Session name: bea46700d4e142a2aa0669310712a5e5da4ffe41 is invalid or session_name object is empty

Tagged:

Answers

  • @navtej.riyait

    You need to be more specific and explain what product/API and scenario this question is about.

    From what I can guess, you are using a Deployed session type in RD Library and haven't provided a mandatory argument DACS ID.

    You can start from the Quickstart and Tutorial samples for the LD library on the dev portal.