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,APIPROXY0 -
@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.0 -
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 -
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
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 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
- 252 ETA
- 556 WebSocket API
- 38 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.9K Refinitiv Data Platform
- 652 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
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛