Python API Cannot Post 404 Error
When running the same code I have been using for quite some time to fetch data with the python eikon api, I am now receiving a 404 on all requests. I have verified that Eikon is listening on port 9000
netstat -anb output:
[EikonBox.exe]
TCP 127.0.0.1:9000 0.0.0.0:0 LISTENING
however any attempt to post to http://localhost:9000/api/v1/data generates the error in the screenshot.
Best Answer
-
@Nipat Kunvutipongsak My issue wasn't resolved, however thanks to the suggestion by @pierre.faurel I am able to work around it by using the API Proxy. This is sufficient for me!
Thanks all for your help.
0
Answers
-
Try updating to the 0.1.12 of eikon.py and let us know if it helps.
0 -
Hi @Zhenya Kovalyov, Thank you for your response.
I am currently updated to the latest version, but still experiencing the same issue.
0 -
Can you set Trace Level of Thomson Reuters Desktop to Debug via Thomson Reuters - Configuration Manager?
Then, kill and restart all Eikon processes.
After that, please share your SxS log (SxS.<datetime>.<pid>.txt) which is in Eikon Logs path (
C:\ProgramData\Thomson Reuters\Eikon Data\Logs\TRD\Eikon.<datetime>.<pid>).
If it starts properly, you should see:
[2018-02-27 03:30:40.423|prod] (sxs-proxy) SxS Proxy init OK
[2018-02-27 03:30:40.425|prod] (app) Start server...
[2018-02-27 03:30:40.443|dev] (app) onStarted: 9000
[2018-02-27 03:30:40.462|prod] (app) Write port file.
[2018-02-27 03:30:40.466|prod] (app) API Proxy is listening to port: 90000 -
sxs20180227064555p10380.txt
Thank you for the reply! The file output is attached. I don't see the line "Write port file" or "SxS Proxy init ok".
Thank you very much for your time and help on this! Let me know what else I can do to help you all out.
0 -
I need to setup an Eikon 4.0.42 with your SxS version (1.1.0.13) because workflow changed with 4.0.43 + SxS 1.1.0.18.
I think that's why you don't have the "Write port file" in your log.In the meantime, could you try a Python request with debug level set to True and post the trace console ?
ex: eikon.get_timeseries('MSFT.O', debug= True)
0 -
Thanks for your help @pierre.faurel!
Attached is a screenshot (as I can't copy out of the windows shell) of the output from a basic call to the API.
However, I've found the R traceback to be more info, mirroring the result I get when querying port 9000 with postman (first screenshot on the thread). It is basically the same result but shows the full HTML response.
I'll note that before this error started, I usually saw output after setting my app ID ("port 9000 in use" or something similar)
Let me know what else I can do. Should my versions be different?
0 -
From the log file, your account may not have a permission to use API proxy.
[2018-02-27 06:45:58.191|show] (app) PO: SIDEBYSIDE
The log shows only SIDEBYSIDE.
TCP Port 9000 is used by both Side By Side and API proxy.
If your account has a permission to use API proxy, the log will have both SIDEBYSIDE and APIPROXY, as shown below.
[2018-01-10 13:44:36.155|show] (app) PO: SIDEBYSIDE,APIPROXY
Please contact your account team or local sales team to verify your account's permission.
0 -
Hi @jirapongse.phuriphanvichai, thank you for your reply!
I do not think this is the case, as I have used the API successfully for several weeks. This issue appeared on Sunday for the first time. In addition, I tried my account credentials on the Mac Eikon API Proxy on a Mac laptop. I was able to log in and query results successfully.
For the sake of due diligence, I will contact my sales rep. What should I ask? That I have permissions to access the API Proxy on the Windows Eikon Data Platform?
Thank you for your help, let me know if I can provide you with more info!
0 -
The log file indicates that API Proxy was not loaded by THOMSONREUTERS.EIKON.DESKTOPSXSSVC. It only loaded SIDEBYSIDE.
[2018-02-27 06:45:58.191|show] (app) PO: SIDEBYSIDE
It may relate to permission or settings of your Eikon account. You can ask your sales rep to verify your account why you can't API Proxy with Eikon.
After fixing, you can verify if APIPROXY is properly loaded from SxS log.
[2018-01-10 13:44:36.155|show] (app) PO: SIDEBYSIDE,APIPROXY
0 -
Unfortunately, I confirm jirapongse's diagnostic.
As you don't have APIPROXY permission, you can't retrieve data through Eikon (this functionality was activated recently).
A workaround could to use the standalone version (Eikon API Proxy Beta 1.0.85- Windows).
You can request to download it here in older version (expand EIKON DATA APIS PROXY - OLDER VERSIONS list), or reuse it if you already downloaded it.The disadvantage is that it does not work with Eikon.
0 -
Odd, Thank you both @pierre.faurel and @jirapongse.phuriphanvichai!
"I'll check on the permissions and hopefully get that resolved. In the meantime, I have requested access for the Windows API Proxy download. Could you grant permission for me to download it?
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
- 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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛