ek.get_data error ‘’nonetype" object has no attribute 'http_requrest'
I can't get data from eikon using eikon api. I have an app key but continue to get error: ‘’nonetype" object has no attribute 'http_requrest' when I use ek.get_data in python.
0
Answers
-
Hi,
Issue can be reproduced when ek.set_app_key("xxxxxxxxxxxxxxxxxxxxxx") was not called.
Could you confirm that ek.set_app_key() was called without any error ?
In addition, could you detail the version of eikon lib and your request (get_data parameters) ?
1 -
my set_app_key runs normally so my key should be no problem. im using the website version of eikon on mac.
im copying a sample/ model request from refinitiv tutorial
data, error = ek.get_data(["GE", "IBM"], ["BID", "ASK"])
0 -
Ok,
Could you :
- open http://localhost:9000/api/status
you should have something like {"statusCode":"ST_PROXY_READY","version":"2.6.3"} - detail the version of eikon lib you're using (check ek.__version__)
(last version is 1.1.6.post3) - activate logs (add ek.set_log_level(1) before ek.set_app_key() )
- then run your code and share output (remove all personal data, specifically app_key | application_id | x-tr-applicationid in request headers)
0 - open http://localhost:9000/api/status
-
Hello
@pierre.faurel, I am experiencing the same issue Internal Server Error 500 after I run the query that used to run perfectly fine before. Please see the detailed log. And yes, I can set the app key without any errors. and the 9000/api/status message is as expected. version 2.6.4. and the eikon version is the last.2020-12-07 15:02:25,941 P[12944] [MainThread 17968] entity: DataGrid_StandardAsync
2020-12-07 15:02:25,942 P[12944] [MainThread 17968] payload: {'requests': [{'instruments': ['SCREEN(U(IN(Equity(active,public,private,primary))), Contains(TR.BusinessSummary,"islami") OR Contains(TR.BusinessSummary,"takaful") OR Contains(TR.CommonName,"takaful") OR Contains(TR.CommonName,"islami") OR Contains(TR.BusinessSummary,"sharia"), IN(TR.TRBCIndustryCode,55301050,55301030,55301020,55301010), CURN=USD)'], 'fields': [{'name': 'TR.TRBCIndustry'}]}]}
2020-12-07 15:02:25,943 P[12944] [MainThread 17968] Request:{'Entity': {'E': 'DataGrid_StandardAsync', 'W': {'requests': [{'instruments': ['SCREEN(U(IN(Equity(active,public,private,primary))), Contains(TR.BusinessSummary,"islami") OR Contains(TR.BusinessSummary,"takaful") OR Contains(TR.CommonName,"takaful") OR Contains(TR.CommonName,"islami") OR Contains(TR.BusinessSummary,"sharia"), IN(TR.TRBCIndustryCode,55301050,55301030,55301020,55301010), CURN=USD)'], 'fields': [{'name': 'TR.TRBCIndustry'}]}]}}}
2020-12-07 15:02:25,944 P[12944] [MainThread 17968] Request to http://127.0.0.1:9060/api/v1/data headers = {'Content-Type': 'application/json', 'x-tr-applicationid': 'xxxxxxxxxxxx'} params = None
2020-12-07 15:02:26,101 P[12944] [MainThread 17968] HTTP request response 500: {"code":500,"message":"read ECONNRESET","statusMessage":"Internal Server Error"}
2020-12-07 15:02:26,102 P[12944] [MainThread 17968] HTTP Response code: 500
2020-12-07 15:02:26,102 P[12944] [MainThread 17968] HTTP Response: {"code":500,"message":"read ECONNRESET","statusMessage":"Internal Server Error"}
2020-12-07 15:02:26,103 P[12944] [MainThread 17968] Headers: x_ratelimit_limit=None / x_ratelimit_remaining=None
2020-12-07 15:02:26,104 P[12944] [MainThread 17968] x_volumelimit_limit=None / x_volumelimit_remaining=None
2020-12-07 15:02:26,112 P[12944] [MainThread 17968] retry_after 00
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 5 Bot Platform
- 17 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 中文论坛