utf8 codec can't decode byte 0xf7 in position 21: invalid start byte
hostname = "'MY_HOST1'"
and
user = "my_user"
And error is the same for impacted ads:
################################################################################
websocket-client version: 1.8.0
################################################################################
Connecting to WebSocket wss://MY_HOST1:15000/WebSocket ...
--- request header ---
GET /WebSocket HTTP/1.1
Upgrade: websocket
Host: MY_HOST1:15000
Origin: https://MY_HOST1:15000
Sec-WebSocket-Key: 6h9vNh0+SY2zRgZg25kS2Q==
Sec-WebSocket-Version: 13
Connection: Upgrade
Sec-WebSocket-Protocol: tr_json2
User-Agent: Python
-----------------------
--- response header ---
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Protocol: tr_json2
Sec-WebSocket-Accept: HTtmpsexkcAFTQB78GAx2xFJAqw=
'utf-8' codec can't decode byte 0xa7 in position 21: invalid start byte
'utf-8' codec can't decode byte 0xa7 in position 21: invalid start byte - goodbye
WebSocket Closed
Best Answer
-
Hello @CarloJason.Arcega
I have checked the case 1332037x, I cannot find any information about the Python version, WebSocket version: 1.6.1 and refinitiv.data Module version: 1.6.0 on the case. Where did you get this information?
By the way, does the client connects to the RTO (I saw you mentioned the Machine-ID on the case), or the deployed ADS with the SSL Accelerator? I did a quick tested with the Python 3.7.16/WebSocket-Client 1.8.0 using both RTO - market_price_rdpgw_authentication.py (connect to WSS ADS on the Cloud) and RTDS - market_price.py (connect to local ADS). They work fine and can connect to ADS successfully.
Note: I do not have the deployed ADS with SSL Accelerator in my environment.
Please be informed that we, Developer Relations can help with the LSEG APIs general usage questions only. For this kind of question, we can help to verify if the client's source code uses a valid Real-Time WebSocket API specification. If the client already uses a valid code, but the problem is still persisting. I strongly suggest you contact the ADS support team as the WebSocket API is the server-side API.
0
Answers
-
Hello @CarloJason.Arcega
I am assuming that you are connecting to the local deployed ADS. Can you replicate the issue with the Python market_price.py example? Please also give us more detail about your environment such as:
- Python version
- OS
- ADS version
- I am noticing your application was trying to connect to "wss/MY_HOST1:15000/WebSocket". Does your ADS is deployed behind the SSL Accelerator?
I did a quick test with the market_price.py example with Python 3.10.14, websocket-client 1.8.0, connect to my local ADS 3.7.3.L1 (ws/127.0.0.1:15000/WebSocket). The example can connect and consume data successfully.
0 -
Python version: 3.7.16 (default, Jan 17 2023, 16:06:28) [MSC v.1916 64 bit (AMD64)]
Websocket version: 1.6.1
refinitiv.data Module version: 1.6.0
hostname = "'MY_HOST1'"
and user = "my_user"And error is the same for impacted ads:
################################################################################
websocket-client version: 1.8.0
################################################################################
Connecting to WebSocket wss://MY_HOST1:15000/WebSocket ...
--- request header ---
GET /WebSocket HTTP/1.1
Upgrade: websocket
Host: MY_HOST1:15000
Origin: https://MY_HOST1:15000
Sec-WebSocket-Key: 6h9vNh0+SY2zRgZg25kS2Q==
Sec-WebSocket-Version: 13
Connection: Upgrade
Sec-WebSocket-Protocol: tr_json2
User-Agent: Python
-----------------------
--- response header ---
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Protocol: tr_json2
Sec-WebSocket-Accept: HTtmpsexkcAFTQB78GAx2xFJAqw=
'utf-8' codec can't decode byte 0xa7 in position 21: invalid start byte
'utf-8' codec can't decode byte 0xa7 in position 21: invalid start byte - goodbye
WebSocket Closed
0 -
To recap, this case was initiated to investigate the cause of an error message encountered during the warmhandshake with ADS
We did not received any clear information on the following points:
1. Were you able to reproduce the issue on your end?
2. Did you test it on various versions of the API?
3. What about the ADS? Where and how are the header messages generated? Is this the same of all ADS versions?
4. What is the mechanism behind these messages, and can this be controlled or configured somehow?
5. Is this a recognized bug?
0 -
To recap, this case was initiated to investigate the cause of an error message encountered during the warmhandshake with ADS
We did not received any clear information on the following points:
1. Were you able to reproduce the issue on your end?
2. Did you test it on various versions of the API?
3. What about the ADS? Where and how are the header messages generated? Is this the same of all ADS versions?
4. What is the mechanism behind these messages, and can this be controlled or configured somehow?
5. Is this a recognized bug?
0 -
Hello @CarloJason.Arcega
We, Developer Advocate are not the ADS support team, so I strongly suggest you contact the case to the ADS support team to investigate the issue on the ADS server side.
You can contact the team via https://myaccount.lseg.com/en/helpandsupport website.
0
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 中文论坛