Invalid Token DatastreamDSWS

The API was working yesterday and suddenly I am getting the following error


I have DatastreamDSWS Desktop license. I have used it yesterday.

get_data : Exception Occured

(<class 'Exception'>, Exception('Invalid Token Value'), <traceback object at 0x0A38FE18>)

None

None

Traceback (most recent call last):

File "C:\Users\abhis\PycharmProjects\streetalpha\venv\lib\site-packages\DatastreamDSWS\DS_Response.py", line 133, in get_data

raise Exception("Invalid Token Value")

Exception: Invalid Token Value

I checked on http://product.datastream.com/DswsClient/Docs/TestSoapV1.aspx and my username and password returns a valid token.


I updated the API today and then it gave import error on wincertstore which I manually added to the project. However, I am still facing issues and the API is not usable for me right now.

Best Answer

  • wasin.w
    wasin.w admin
    Answer ✓

    Hello @abbanerjee

    I have updated Datastream API to version 1.0.1 and tried to replicate your scenario with DSWS Python Code Samples codes. The example code returns data and I cannot replicate an invalid Token issue.

    I suggest you contact Datastream support team via My Refinitiv web site to help your verify the issue.

    image