Unable to connect to APIPROXY even though http://localhost:9060/api/status works
Hi, I am having difficulty getting the Eikon Data API to work
I have followed the instructions here:
https://developers.refinitiv.com/en/api-catalog/eikon/eikon-data-api/quick-start
and have Registered an Application using APPKEY tool on my Eikon Terminal (that I run on the same machine I run my python script)
This works:
http://localhost:9060/api/status
{"statusCode":"ST_PROXY_READY","version":"3.3.2"}
This does not work:
http://localhost:9000/ping?all
HTTP Error 404. The requested resource is not found.
I am using eikon = 1.1.6 and I get the following exception when I call:
import eikon as ek
ek.set_log_level(1)
ek.set_app_key(<key>)
See below, I would appreciate your help. Thank you
2022-09-13 21:33:41,753 P[27] [MainThread 140347991713600] Warning: file .portInUse was not found. Try to fallback to default port number.
2022-09-13 21:33:41,759 P[27] [MainThread 140347991713600] Try defaulting to port 9000...
2022-09-13 21:33:41,760 P[27] [MainThread 140347991713600] Send GET request to http://127.0.0.1:9000/api/status to detect API Proxy...
2022-09-13 21:33:41,761 P[27] [MainThread 140347991713600] Request to http://127.0.0.1:9000/api/status
headers = {'x-tr-applicationid': ''}
params = None
2022-09-13 21:33:41,784 P[27] [MainThread 140347991713600] HTTP request failed: ConnectError('All connection attempts failed',)
2022-09-13 21:33:41,785 P[27] [MainThread 140347991713600] Error on checking proxy url http://127.0.0.1:9000/api/status : ConnectError('All connection attempts failed',)
2022-09-13 21:33:41,786 P[27] [MainThread 140347991713600] Default proxy port #9000 failed
2022-09-13 21:33:41,787 P[27] [MainThread 140347991713600] Try defaulting to port 9060...
2022-09-13 21:33:41,788 P[27] [MainThread 140347991713600] Send GET request to http://127.0.0.1:9060/api/status to detect API Proxy...
2022-09-13 21:33:41,789 P[27] [MainThread 140347991713600] Request to http://127.0.0.1:9060/api/status
headers = {'x-tr-applicationid': 'xxxxxxxxxxxxxxxxxxxx'}
params = None
2022-09-13 21:33:41,792 P[27] [MainThread 140347991713600] HTTP request failed: ConnectError('All connection attempts failed',)
2022-09-13 21:33:41,793 P[27] [MainThread 140347991713600] Error on checking proxy url http://127.0.0.1:9060/api/status : ConnectError('All connection attempts failed',)
2022-09-13 21:33:41,794 P[27] [MainThread 140347991713600] Default proxy port #9060 failed
2022-09-13 21:33:41,795 P[27] [MainThread 140347991713600] Error: no proxy address identified.
Check if Eikon Desktop or Eikon API Proxy is running.
2022-09-13 21:33:41,796 P[27] [MainThread 140347991713600] Try to handshake on url http://127.0.0.1:None/api/handshake...
2022-09-13 21:33:41,797 P[27] [MainThread 140347991713600] Request to http://127.0.0.1:None/api/handshake
headers = {'Content-Type': 'application/json', 'x-tr-applicationid': 'xxxxxxxxxxxxxxxxxxxx'}
params = None
2022-09-13 21:33:41,799 P[27] [MainThread 140347991713600] HTTP request failed: UnsupportedProtocol("Request URL is missing an 'http://' or 'https://' protocol.",)
2022-09-13 21:33:41,800 P[27] [MainThread 140347991713600] Error on handshake url http://127.0.0.1:None/api/handshake : UnsupportedProtocol("Request URL is missing an 'http://' or 'https://' protocol.",)
2022-09-13 21:33:41,801 P[27] [MainThread 140347991713600] Error on handshake url http://127.0.0.1:None/api/handshake : UnsupportedProtocol("Request URL is missing an 'http://' or 'https://' protocol.",)
2022-09-13 21:33:41,801 P[27] [MainThread 140347991713600] Port number was not identified, cannot send any request
2022-09-13 21:33:41,803 P[27] [MainThread 140347991713600] Received notification for closed streaming session 0
2022-09-13 21:33:41,804 P[27] [MainThread 140347991713600] Received notification for closed streaming session 0
2022-09-13 21:33:41,805 P[27] [MainThread 140347991713600] Init a Desktop session with new app_key
Best Answer
-
Found the root cause. It was an error on my side. I was using a cloud-hosted Jupyter session rather than a local session of Jupyter! That is why the API could not connect to my PROXY.
0
Answers
-
hi @ainhoa.dewismeoliva ,
Could you please try to restart your machine, the restart your Eikon Desktop.
Then follow article Eikon Data API (Python) Troubleshooting | Refinitiv, and test the instruction on step 3-6 and 3-7 to make sure that the API Proxy is running properly.
If this still does not help with the issue, you can submit a product support ticket on MyRefinitiv and ask the helpdesk to escalate the issue to the Technical Service Group.
1 -
thank you @raksina.samasiri -I have already followed the instructions you have shared but they didn't help unfortunately . I have restarted my Eikon desktop multiple times with no luck (have not restarted my machine, that is a bit drastic... but will do); I tried to raise a request on MyRefinitiv and I was advised to raise the question here.. I will try again.
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 中文论坛