MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?
installed the eikon package, created an app id, but get the following errors when querying:
In [1]: import eikon as ek
In [2]: ek.set_app_id('xxxxxxxxx')
No handlers could be found for logger "pyeikon"
In [3]: ek.set_app_id('xxxxxxxxx')
In [4]: ek.get_news_headlines('R:LHAG.DE', date_from='2017-04-05T09:00:00', date_to='2017-04-05T18:00:00')
---------------------------------------------------------------------------
MissingSchema Traceback (most recent call last)
<ipython-input-4-498a2e2a3dbc> in <module>()
----> 1 ek.get_news_headlines('R:LHAG.DE', date_from='2017-04-05T09:00:00', date_to='2017-04-05T18:00:00')
/home/wqmo/packages/anaconda2/lib/python2.7/site-packages/eikon/news_request.pyc in get_news_headlines(query, count, date_from, date_to, raw_output, debug)
104 payload.update({'dateTo': to_datetime(date_to).isoformat()})
105
--> 106 result = eikon.json_requests.send_json_request(News_Headlines_UDF_endpoint, payload, debug=debug)
107
108 if raw_output:
/home/wqmo/packages/anaconda2/lib/python2.7/site-packages/eikon/json_requests.pyc in send_json_request(entity, payload, ID, debug)
75 headers={'Content-Type': 'application/json',
76 'x-tr-applicationid': profile.get_application_id()},
---> 77 timeout=60)
78
79 if debug:
/home/wqmo/packages/anaconda2/lib/python2.7/site-packages/requests/sessions.pyc in post(self, url, data, json, **kwargs)
563 """
564
--> 565 return self.request('POST', url, data=data, json=json, **kwargs)
566
567 def put(self, url, data=None, **kwargs):
/home/wqmo/packages/anaconda2/lib/python2.7/site-packages/requests/sessions.pyc in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
502 hooks = hooks,
503 )
--> 504 prep = self.prepare_request(req)
505
506 proxies = proxies or {}
/home/wqmo/packages/anaconda2/lib/python2.7/site-packages/requests/sessions.pyc in prepare_request(self, request)
434 auth=merge_setting(auth, self.auth),
435 cookies=merged_cookies,
--> 436 hooks=merge_hooks(request.hooks, self.hooks),
437 )
438 return p
/home/wqmo/packages/anaconda2/lib/python2.7/site-packages/requests/models.pyc in prepare(self, method, url, headers, files, data, params, auth, cookies, hooks, json)
300
301 self.prepare_method(method)
--> 302 self.prepare_url(url, params)
303 self.prepare_headers(headers)
304 self.prepare_cookies(cookies)
/home/wqmo/packages/anaconda2/lib/python2.7/site-packages/requests/models.pyc in prepare_url(self, url, params)
380 error = error.format(to_native_string(url, 'utf8'))
381
--> 382 raise MissingSchema(error)
383
384 if not host:
MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?
How can I fix this ?
Thanks
Best Answer
-
Not able to connect to either link.
I think the issue is, my Eikon termianl is installed in my windows machine, but I write/run my scripts connected to linux server remotely. Any way I can set this up to work on the linux server?
Thanks0
Answers
-
It seems that Python library didn't identify the proxy port (url is built with this port number).
Could you check response on following url ?
Could you confirm that API Proxy is running or not ?
You can check in SxS.yyyymmdd.hhmmss.txt file in C:\ProgramData\Thomson Reuters\Eikon Data\Logs\TRD\Eikon.yyyymmdd.hhmmss.pxxxxx folder ; you should find this line :
[2018-03-08 10:23:23.773|prod] (app) PO: SIDEBYSIDE,APIPROXY1 -
@felix.olazaran
This would likely be a violation of your contract with Thomson Reuters. Standard contract stipulates that any data retrieved from Eikon is "for the User’s individual use". If you intend to create a server side multi user or enterprise application systematically consuming Thomson Reuters data, you should consider Thomson Reuters enterprise products that come with the license to utilize Thomson Reuters data in the manner you intend.1 -
I also had the same problem this morning. I was trying to retrieve some bond prices, and this is the error I got. Also, querying equity prices seemed to work. Can anyone help me with this please?
- root - ERROR - main_think:557 - Invalid URL 'None': No schema supplied. Perhaps you meant http://None?
Traceback (most recent call last):File "C:\ProgramData\Anaconda3\lib\site-packages\eikon\data_grid.py", line 151, in get_data
result = eikon.json_requests.send_json_request(DataGrid_UDF_endpoint, payload, debug=debug)
File "C:\ProgramData\Anaconda3\lib\site-packages\eikon\json_requests.py", line 77, in send_json_request
timeout=60)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\sessions.py", line 555, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\sessions.py", line 494, in request
prep = self.prepare_request(req)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\sessions.py", line 437, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\models.py", line 305, in prepare
self.prepare_url(url, params)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\models.py", line 379, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?0 -
Could you check what's your Eikon version ? (Research and Advisory, Core or Premium)
Eikon Data API is only available for Eikon Premium version (see detail here).
0 -
It seems to be working now. The version I have is not premium.
Do you know when Python API will become premium-only?
0 -
Does anyone know when exactly Python API will become a premium-only feature?
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 中文论坛