EikonError: Error code 401 | Eikon Proxy not running or cannot be reached. Please read the docume...

...ntation on troubleshooting
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
- 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
- 615 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
- 251 ETA
- 555 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
- 643 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
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 916 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛