Unable to retrieve data 'daemon is disconnected'
Hi.
I have started getting this error from Jupyter notebook. Was working fine till yesterday...
HTTPError Traceback (most recent call last)
<ipython-input-9-856e1b1c042a> in <module>()
2 # ek.set_app_key('***************************')
3 ek.set_app_id("******************************")
----> 4ek.get_news_headlines('R:LHAG.DE', date_from='2017-04-05T09:00:00', date_to='2017-04-05T18:00:00')
~\Anaconda3\lib\site-packages\eikon\news_request.py in get_news_headlines(query, count, date_from, date_to, raw_output, debug)
104 payload.update({'dateTo': to_datetime(date_to).isoformat()})
105
--> 106result = eikon.json_requests.send_json_request(News_Headlines_UDF_endpoint, payload, debug=debug)
107
108 if raw_output:
~\Anaconda3\lib\site-packages\eikon\json_requests.py in send_json_request(entity, payload, ID, debug)
90 raise EikonError('401', response.text) #'daemon is disconnected')
91 else:
---> 92raise requests.HTTPError(str(response), response=response)
93
94 except requests.exceptions.ConnectionError as connectionError:
HTTPError: <Response [403]>
Best Answer
-
ok. it works now!! restarted my machine & eikon terminal
0
Answers
-
I notice that in your code you call set_app_key method and then immediately overwrite the value by calling set_app_id, and I wonder if perhaps you're overwriting the new app key value with an old app ID? Both set_app_key and set_app_id methods do the same thing. set_app_key was introduced to maintain consistent terminology when Eikon started enforcing validation of app keys. set_app_id is a deprecated but still functional method. If you call set_app_id after set_app_key the value you pass to set_app_id method overwrites the value of the app key you previously set by calling set_app_key. This is of no significance if the value you provide to both methods is the same. But if they're different then whatever method is called last sets the value of app key, which is validated whenever you submit any data request.
I would also recommend that you upgrade the version of eikon library by running "pip install eikon --upgrade" from command prompt. The latest version of eikon library (currently v0.1.13) will give you more verbose and more informative error message.0 -
I have the set_app_key() commented. Just been using the set_app_id
0 -
I disabled the app key and generated a new one. Still no luck.
Please help as I am stuck now. My jupyter notebooks have all stopped working.
Excel Eikon api works
0 -
Could you update the eikon library and get a more verbose error message?
After updating the eikon library, please restart the kernel from your Jupyter notebook.0 -
pip install eikon --upgrade throws a exception. Any thoughts?
line 114, in rmtree_errorhandler func(path) PermissionError: [WinError 5] Access is denied: 'C:\\Users\\sumit\\AppData\\Local\\Temp\\pip-2tod38cc-uninstall\\users\\sumit\\anaconda3\\lib\\site-packages\\numpy\\core\\multiarray.cp36-win_amd64.pyd'
0 -
upgraded eikon
I get this verbose error message:-
Error code 403 | Client Error: Forbidden - {"ErrorCode":1401,"ErrorMessage":"Application id MOSAICSMARTDATALTD.MOSAICDATAAPI is invalid"}
0 -
ok. it works now!! restarted my machine & eikon terminal
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 中文论坛