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
- 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
- 684 Datastream
- 1.4K DSS
- 613 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
- 248 ETA
- 552 WebSocket API
- 37 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
- 637 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 88 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛