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
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 33 Data Model Discovery
- 682 Datastream
- 1.4K DSS
- 613 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
- 248 ETA
- 552 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.8K Refinitiv Data Platform
- 625 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 83 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛