Client is getting attached error when trying to retrieve data using DSWS R API
i can see the token expiry date is 31 march 2025
I checked previous Q&A cases here but they seem to be relate to RDP and not DSWS
Please advise how to fix this.
thank you
Hello @bob.kim
Please be informed that the https://github.com/CharlesCara/DatastreamDSWS2R is not LSEG official product. It is the 3rd party library developed by https://github.com/CharlesCara . If the client encounters any issues with the DatastreamDSWS2R library, the client can contact the library developer directly via https://github.com/CharlesCara/DatastreamDSWS2R/issues page.
The client can use the https://product.datastream.com/DswsClient/Docs/TestRestV1.aspx page to verify their DSWS credential. If the client's credential works fine on this REST test page, it means the client's credential already valid, but there might be something on the R library site.
@bob.kim
According to the attached picture, I am not sure why it returned XML, not JSON.
Please try the latest version of DatastreamDSWS2R.
Thank you . One follow up question. Then what can our clients use as our official product? Can you provide the link to it?
The official ease-of-use library for Datastream is available in Python only https://pypi.org/project/DatastreamPy/ .
However, Datastream is the webservice (SOAP and HTTP REST), so any programming languages that support HTTP and JSON can connect and consume Datastream data (including R).
Hi, Sometime on Sunday the DSWS switched its default format from JSON to XML.
I have patched the DatastreamDSWS2R package for this change and released it onto CRAN.
The fix is to upgrade latest version (v 1.9.12) with
install.packages("DatastreamDSWS2R")
@Charles Cara
Thank you for the update.
I will contact the product team to verify this.
The Datastream Web Service team has also fixed this issue, as mentioned in this 336600 service alert.