Invalid encrypted protocol type(2) for requesting RDP service discovery
Got “Invalid encrypted protocol type(2) for requesting RDP service discovery, ErrorCode=-22” when running EMA application consumer example cons113. What's the root cause? Is that due to TLS version?
Best Answer
-
Hello @Frederic
My colleague, @Jirapongse can replicate the issue by setting the wrong value to the EmaConfig.xml's EncryptedProtocolType property.
Could you share and recheck your EmaConfig.xml file? The supported value of the EncryptedProtocolType for the encrypted RSSL connection (RTO) is as follows:
0
Answers
-
Hello @Frederic
I never experience this kind of error message. Could you please give me more detail as follows?
- RTSDK version and edition
- OS and compiler detail
- Can you replicate the issue on demand?
- Replication steps
Can you try the following cURL commands in the same machine that encounters the issue?
Step 1: Authentication
If you are using the Version 1 Authentication (Machine-ID type)
curl -X POST \
'https://api.refinitiv.com:443/auth/oauth2/v1/token' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'username=<Machine-ID>' \
--data-urlencode 'password=<Password>' \
--data-urlencode 'client_id=<App Key>' \
--data-urlencode 'grant_type=password' \
--data-urlencode 'takeExclusiveSignOnControl=true' \
--data-urlencode 'scope=trapi'If you are using the Version 2 Authentication (Service Account/CIAM type)
curl -X POST \
'https://api.refinitiv.com:443/auth/oauth2/v2/token'; \
--header 'Accept: */*' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_secret={client secret}' \
--data-urlencode 'client_id={client id}' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'scope=trapi'Then copy the return access token.
Step 2: Test Service Discovery
curl -X GET \
'https://api.refinitiv.com:443/streaming/pricing/v1/' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <Access Token from Step 1>'0 -
0
-
Looks like it's OK for the response of those commands (respond with the list of those AWS endpoints). Is that possible due to some issue with the C++ running environment? Not sure the meaning of “Invalid encrypted protocol type(2) for requesting RDP service discovery, ErrorCode=-22”
0 -
Hello @Frederic
The RTSDK C/C++ uses the OpenSSL, zlib, and cURL libraries to connect to the encrypted server RTO. You may check if you have set up those libraries on your machine correctly from the following articles
- How to Build OpenSSL, zlib, and cURL Libraries on Linux
- How to Build OpenSSL, zlib, and cURL libraries on Windows
Additionally, did the same HTTP error returns for an authentication request (the first request from the API to the platform)?
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 中文论坛