Python websocket-api returned message "unknown to system".
Hi, I'm trying to modify my company's program as the API has changed to V2.
The legacy program received data through API and saved it as a file such as CSV.
1. Here is License
ELEKTRON REAL TIME IN CLOUD STREAM ID: 1
EAL-TIME ID WATCHLIST 2.5K: 1
Status: Assigned
Type: Base
2. I tried to follow this code as best as I could.
https://github.com/Refinitiv/websocket-api/blob/master/Applications/Examples/RDP/python/market_price_rdpgw_client_cred_auth.py
3. my PAA web console information. ( '****' is masking values for asking.)
###################################
# [PAA Service Application]
###################################
Application name: testApplication_23-08-17
Application id: 30bd9669-****-****-a997-89560c584722
Service account name: getAPI
Service ID: GE-EMXIJKYAUR4E
password: ********-***-****-****-6e294fd3c431
Authentication method: Secret
Status: Active
3. I set variables
# Global Default Variables
app_id = '30bd9669-****-****-a997-89560c584722'
auth_token = ''
auth_url = 'https://api.refinitiv.com/auth/oauth2/v2/token'
clientid = ''
client_secret = ''
discovery_url = 'https://api.refinitiv.com/streaming/pricing/v1/'
hostName = ''
hostName2 = ''
hostList = []
backupHostList = []
hotstandby = False
port = 443
port2 = 443
position = ''
region = 'us-east-1'
ric = '/TRI.N'
scope = 'trapi.streaming.pricing.read'
service = 'ELEKTRON_DD'
session2 = None
curTS = 0
tokenTS = 0
#####################
## User Defined Vars
#####################
newPassword = ''
data_path = 'C:\_works\PAA\data'
log_path = 'C:\_works\PAA\logs'
data_dict_size = 52
data_dict_list = []
clientid = 'GE-EMXIJKYAUR4E'
client_secret = '********-***-****-****-6e294fd3c431'
password = client_secret
4. I Got this messages.
2023-09-06 15:08:41.476531 Session1: Connecting WebSocket to wss://ap-southeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket...
2023-09-06 15:08:42.022800 Session1: WebSocket successfully connected!
2023-09-06 15:08:42.022800 SENT on Session1:
{
"Domain":"Login",
"ID":1,
"Key":{
"Elements":{
"ApplicationId":"30bd9669-****-****-a997-89560c584722",
"AuthenticationToken":"xts********0AjKCAnx",
"Position":"10.168.112.201/laptop-kaydash"
},
"NameType":"AuthnToken"
}
}
2023-09-06 15:08:42.423636 RECEIVED on Session1:
[
{
"Domain":"Login",
"ID":1,
"Key":{
"Name":"xts********0AjKCAnx"
},
"State":{
"Code":"Error",
"Data":"Suspect",
"Stream":"Closed",
"Text":"GE-EMXIJKYAUR4E, unknown to system."
},
"Type":"Status"
}
]
Q) What part should I fix?
Best Answer
-
Hello @shinhanai_d
Based on the given information, your V2 credential received the Access Token from RDP Auth Service (version 2) successfully and the application did send a valid WebSocket JSON login request message to RTO.
However, the Login status response message "Text":"GE-XXXXXX, unknown to system." indicates that the RTO server does not recognize that GE-XXXXXX username. This message is generated from the RTO side, so I strongly suggest you contact the RTO support team directly to verify this issue on the server side. You can submit a support ticket to the RTO support team via https://my.refinitiv.com/content/mytr/en/helpandsupport.html website.
1
Answers
-
Thank you for reaching out to us.
I got the same error when using your access token.
Please contact the Refinitiv Real-Time - Optimized support team directly via MyRefinitiv to verify your account (GE-EMXIJKYAUR4E).
0 -
Thank you very much for your help with verification.
0 -
I was really curious as to why I was getting an error with API response. Thank you for interpreting this response.
0 -
not working0
-
don't use then0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛