If I run the following code in Windows
Log.Level = NLog.LogLevel.Debug;
Log.Output = (loginfo, parms) => Console.WriteLine($"Application: {loginfo.Level} - {loginfo.FormattedMessage}");
var response = await Search.Definition().View(Search.LightView.SearchAllLight).Query("apple").Select("RIC")
.Top(10).GetDataAsync(session);
Everything work fine and debug message in console is
Application: Debug - Preparing Endpoint POST request https://api.refinitiv.com/discovery/searchlight/v1/ with Content:
"{
"View": "SearchAllLight",
"Query": "apple",
"Select": "RIC",
"Top": 10
}"
But if the code is running in a Docker container on Linux (WSL or bare metal server) the code will fail with an error
System.NotSupportedException: 'The 'file' scheme is not supported.'
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Refinitiv.Data.Core.PlatformSessionCore.HttpRequestAsync(Uri uri, HttpMethod method, HttpContent content, IDictionary`2 header, CancellationToken cancellationToken)
at Refinitiv.Data.Delivery.Request.EndpointDefinition.GetDataAsync(ISession session, Action`3 cb, CancellationToken cancellationToken)
at Refinitiv.Data.Content.SearchService.SearchDefinition.GetDataAsync(ISession session, Action`3 cb, CancellationToken cancellationToken)
at RefinitivBug.Program.Main(String[] args) in E:\Work\RefinitivBug\RefinitivBug\Program.cs:line 29
And debug message in console is
Application: Debug - Preparing Endpoint POST request file:///discovery/searchlight/v1/ with Content:
"{
"View": "SearchAllLight",
"Query": "apple",
"Select": "RIC",
"Top": 10
}"
Is there a workaround or quick fix for this?