Handshake status 500 handshakefailed when running the markety_price.py example code.
Hi,
When running the Python code (I use Python) market_price.py from the WebSocket API Sample Applications (link) Iget the following:
Connecting to WebSocket ws://hostname:15000/WebSocket ...
Handshake status 500 handshakefailed
WebSocket Closed
I do have the market data server setup (ADS) within my environment that supports the WebSocket API and I am able to login via the interactive guide on the developer's portal.
Could anyone explain to me how this must be done correctly?
I fail to see what I should do other than setting the default global variables to my values and then run the code.
Thanks in advance,
I hope my question is sufficiently clear,
Best regards
Best Answer
-
If all other examples failed and it works in your browser only, there must be something different in the route of your access when you are in your browser. Confirm you are able to successfully send requests and receive responses in your browser just to make sure. Also, check your logs in the ADS for additional details related to your different tests. Confirm both the browser connection and application connects to compare.
0
Answers
-
Can you confirm which version of Python you are using? There are some specific instructions within the README file that you will need to pay attention to. For example:
NOTE: The posting example must be run with Python3.0 or greater. The other
examples may be run with Python2.7 or greater.<br>And
Run (in order):
pip install requests
pip install websocket-client
(Only for Python versions less than 3.3) pip install ipaddressAlso, you may be going through a proxy and within your browser, the setup may be different than running from a command window. You may need to confirm your network access.
0 -
Hi @nick.zincone.1 and thank you for your quick reply,
I am using Python 3.6.5 and have indeed followed the instructions within the README file installing the above mentioned packages.
0 -
update: I tried running it in PyCharm but to no avail:
Connecting to WebSocket ws://hostname:port/WebSocket ...<br>Handshake status 500 handshakefailed<br>WebSocket Closed
0 -
I didn't find much information on a WebSocket error status 500 other than issues related to network routes, proxy setting, etc. Is it possible for you to try one of the other examples? This may provide a clue as to whether the issue is related to your network setup and the route to ADS.
In addition, find out if the ADS logs are showing any additional related to your connection.
0 -
Hi @nick.zincone.1 ,
I have tried the other examples as well as disabled the firewall temporarily, but it did not help.
Thanks anyway
0 -
Hello @mehdi.el.hamzaoui
Did web browser interactive guide and Python application connect to the same ADS host and WebSocket port?
0 -
Yes, it did. However the issue has been solved. It was actually a problem with my machine.
0
Categories
- All Categories
- 6 AHS
- 39 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
- 370 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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛