I'm using the DataScope REST API toolkit for C#. On occasion when I run my application I get the following exception: ThomsonReuters.Dss.Api.UnauthorizedException: Authentication request failed because no token was provided in the Authorization: header.
When I rerun the application everything works as expected. Any ideas?
The latest toolkit, 12.3.361
The code is simplistic, it's straight out of the SDK tutorial.
_extractionsContext = new ExtractionsContext(new Uri(dssURI), dssUserName, dssUserPassword); //create and populate the request
var result = _extractionsContext.ExtractWithNotes(request);
Could it be a race around condition - where the second request for ExtractWithNotes might be sent out, before the first call for RequestToken has returned or has failed.
If this is happening regularly, you can post a code snippet so that we can replicate the issue. Other option is to setup a proxy server to catch and inspect the raw request/response messages.