We are getting TLS1.1 not supported error while using .NET Framework 4.8 and DataScope.Select.Res...

...tApi.Client 17.2.129.0. It seems that we only got the errors when using "x-direct-download" in the request header. Could you please advise?
client is claiming when they run custom extractions and downloading the output file with S3 direct header they are getting below error:
We got TLS errors frequently today (maybe since last week). We had to retry several times to get the files downloaded, and this caused delays.
Take file DAILY-1MIN-EURO2-20230825.csv.gz for example. The file id is 0x0899d721a3e90bfd. Error logs (including RequestId) like below:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>InvalidTlsVersion</Code><Message>Amazon S3 will stop supporting TLS 1.0 and TLS 1.1 connections. Please update your client to use TLS version 1.2 or above. To learn more and to update your client, see https://go.aws/3AUlVSb. For further assistance, contact AWS support.</Message><RequestId>JKXGNP0M3VQGQX13</RequestId><HostId>XBQEirTiGjLByJz42qN4hHq35v6bL4xAjgFAZRzav7W/GzTIN8j0xZS4Jj9HaEy2pTHM/YhFeZU=</HostId></Error> :
at DataScope.Select.Api.Core.HttpOData.Http.HttpClientExceptionDecorator+<ParseResponseError>d__1b.MoveNext () [0x0057a] in <f747139363544b3990dfff486c66c322>:0
Could you please confirm the TLS version that MLP sent to Refinitiv side?
If MLP sent TLS1.2 or TLS1.3, could you please check further why it became TLS1.1 on Refinitiv side?
If MLP sent TLS1.1, could you please advise how to specify TLS version in DataScope.Select.RestApi.Client (version 17.2, with .NET Framework 4.8)?
Btw, according to our logs, the TLS error was not consistent, it’s usually gone after retried several times. So I suspect the issue is on some of your load-balance servers.
Best Answer
-
Thank you for reaching out to us.
I ran the RTH Tutorial 5 example code to replicate this issue. However, I can run it properly on Windows 10, and Visual Studio 2019 (.NET Framework 4.8). I can download a file from AWS properly. Therefore, please run the RTH Tutorial 5 example code and let us know the result.
Otherwise, you can try the following code to set the TLS version to 1.2.
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
DssClient dssClient = new DssClient();You can also enable tracing in the .NET Framework by adding the following configurations into the app.config file.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
<system.diagnostics>
<trace autoflush="true"/>
<sources>
<source name="System.Net" maxdatasize="1024">
<listeners>
<add name="TraceFile"/>
</listeners>
</source>
<source name="System.Net.Sockets" maxdatasize="1024">
<listeners>
<add name="TraceFile"/>
</listeners>
</source>
</sources>
<sharedListeners>
<add name="TraceFile" type="System.Diagnostics.TextWriterTraceListener" initializeData="trace.log"/>
</sharedListeners>
<switches>
<add name="System.Net" value="Verbose"/>
<add name="System.Net.Sockets" value="Verbose"/>
</switches>
</system.diagnostics>
<runtime>
....The trace.log file will be created in the current working directory.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 616 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛