question

Upvotes
Accepted
5 6 6 8

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 512.0 KiB each and 1.0 MiB total.

@abbanerjee

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

-AHS

@abbanerjee

Hi,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
24.6k 54 17 14

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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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