question

Upvotes
Accepted
5 3 2 7

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.

datastream-apidsws-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
11.5k 16 7 10

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.


datastream.png (17.7 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea