CASE 15195576/ WORKSPACE KIOSK Application id LD-PYTHON-LIB is invalid

UDAY_1
UDAY_1 LSEG
edited 8:42AM in Workspace SDK

HI, I get the following error when I try to pull data from lseg using pyhton "LDError: Error code 403 | {"ErrorCode":1401,"ErrorMessage":"Application id LD-PYTHON-LIB is invalid"}. Contact LSEG to check your permissions." My code is as follows "news = ld.news.get_headlines(query='P:[Bundesrepublik DeutschlandFinanzagentur Gesellschaft Mit Beschrankter Haftung] AND Language:LEN', start='2025-08-06T00:00:00', end='2025-12-06T23:59:59', count=1000) "but I get the same error no matter which data I try to load

 I reached out to Tech team they replied: pls check with your Specialist to test client code on your side 

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @UDAY_1

    Thank you for reaching out to us.

    Please enable the debug log in the library by using the following code before opening a session to verify what the problem is.

    config = ld.get_config()
    config.set_param("logs.transports.file.enabled", True)
    config.set_param("logs.transports.file.name", "lseg-data-lib.log")
    config.set_param("logs.level", "debug")
    ld.open_session()

    With this code, the lseg-data-lib.log file will be created. Please share this log file when the problem occurred.