EikonError: Error code 401 | Eikon Proxy not running or cannot be reached. Please read the documenta
Hi, good morning, I'm trying to run a refinitiv api from jupyter notebook and I'm getting connection errors.
Important: I am doing this with the refinitiv desktop application open.
Below I show the code:
import eikon as ek
ek.set_log_level(1)
ek.set_app_key('********************')
So far I'm not sure if it worked correctly. Please, if someone can confirm for me, I would appreciate it.
df,e = ek.get_data(['LSEG.L'], ['TR.RIC'])
print(df)
Additionally, based on the answer to this forum question: https://community.developers.refinitiv.com/questions/91124/shown-up-eikonerror-error-code-401-eikon-proxy-not.html
I went to troubleshoot the troubleshoot and ran the following tests: https://developers.refinitiv.com/en/article-catalog/article/eikon-data-api-python-troubleshooting-refinitiv
6. Open http://localhost:9000/ping?all on a web browser.
{"port":9000,"mode":"eikon4","pid":****,"hasSecure":true,"startedTime":"Mon Aug 14 2023 12:51:16 GMT-0300 (Hora estándar de Argentina)","subApps":[{"path":"/heap"},{"path":"/ping"},{"path":"/sxs","data":{"hasSecure":true,"sxsApps":{}}},{"path":"/api"},{"path":"/sxs/v1/services/messenger"}]}
7. Open http://localhost:9060/api/status on a web browser.
{"statusCode":"ST_PROXY_READY","version":"3.5.4-eikon4"}
both seem to be correct.
But when I try the following:
1.2.3) Verify that Refinitiv Workspace and Data API Proxy service are running properly:
(http://localhost:9060/api/ or http://localhost:9000/api/)
{"code":500,"message":"Cannot find module \".\"","statusMessage":"Internal Server Error"}
And the truth is that I don't know what else to do. I don't know if it's a configuration problem, something from a firewall that is blocking it or a proxy (which are already issues in which I have no knowledge).
Please, if anyone has any idea where to go I would appreciate it.
Thank you!!
Best Answer
-
Yes, the issue should be investigated by the Eikon or Workspace support team.
This is how the Eikon Data API connects to the server. Eikon Data API retrieves data through the Eikon API Proxy.
The API and PowerShell can connect to the Eikon API Proxy on http://localhost:9060 but the Eikon API Proxy responded with the 500 getaddrinfo ENOTFOUND error.
The Eikon support team should check why the Eikon API Proxy returns this error.
You may check with this command. I am not sure if it will relate to the problem.
Invoke-WebRequest -Method GET -Uri https://amers1-apps.platform.refinitiv.com
0
Answers
-
Thank you for reaching out to us.
You can test the request by running the following command in PowerShell.
(Invoke-WebRequest -Method POST -Body (@{"AppKey"="<app key>";"AppScope"="trapi";"ApiVersion"="1";"LibraryName"="RDP Python Library";"LibraryVersion"="1.1.7"}|ConvertTo-Json) -Uri http://127.0.0.1:9060/api/handshake -ContentType application/json)
Change "<app key>" to your application key.
The response looks like this:
If you got the same error, please contact the Eikon support team direclty via MyRefinitiv to verify your profile settings.
0 -
Hello Jirapongse,
I tried the proposed code in powershell and I get the same error:
Should I contact MyRefinitiv directly or can you think of something else that might be going on?
Thank you!
0 -
Hello! Thank you very much for the reply.
When I run the code you sent me, I get:
Which is the same as what you received.
But I don't quite understand what I should do next. If I run the above code again, it still gives me the same error:
I am doing something wrong? What do you recommend?
Thanks!!
0 -
Hi @jfcubells ,
There are numerous reasons why an HTTP request may occasionally fail. If this happens randomly and infrequently, a simple workaround is to catch the error and re-request the data. If this happens frequently or if you're able to consistently reproduce the problem, I suggest opening a support case with Refinitiv Helpdesk. Refinitiv Support can be reached by calling the Helpdesk number in your country, using Contact Us capability in Eikon application or by visiting MyRefinitiv.
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 中文论坛