Why do I run into an error message when trying to use datascopeSelect()?

When I try to run the following command, then it fails with an error where it has worked fine a while ago:
>> c = datascopeSelect(username,password)
Error using matlab.net.http.RequestMessage/sendOneRequest (line 1364)
Secure connection to "https://selectapi.datascope.refinitiv.com/RestApi/v1/Authentication/RequestToken" not established because "Recv failure: Connection was reset".
Check your system certificates for expired, missing, or invalid certificates.
Error in matlab.net.http.RequestMessage/sendAfterChallenge (line 1697)
[response, request, history] = obj.sendOneRequest(connector, options, ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.net.http.RequestMessage/sendAndAuthenticate (line 1146)
obj.sendAfterChallenge(response, connector, ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.net.http.RequestMessage/send (line 559)
obj.sendAndAuthenticate([], completedURI, [], connector, options, ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in datascopeSelect (line 110)
response = send(Request,HttpURI,options);

 Accepted Answer

Some of the underlying REST API URLs have changed for datascope Select which might now cause this error message. As a workaround you can try to pass the actual URL instead of relying on the default URL in the datascopeSelect() function:
>> c = datascopeSelect("username","password",200,"https://selectapi.datascope.lseg.com/RestApi/v1/Authentication/RequestToken")

More Answers (0)

Products

Release

R2025b

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!