For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvote
Accepted
36 1 1 4

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

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
36 1 1 4

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?
Thanks

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

@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.

Upvote
4.3k 2 4 5

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 ?

  • http://localhost:9000/api/v1/data
  • http://localhost:36036/api/v1/data

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,APIPROXY

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
3 0 1 3

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?


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
4.3k 2 4 5

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).

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

It seems to be working now. The version I have is not premium.

Do you know when Python API will become premium-only?

Upvotes
3 0 1 3

Does anyone know when exactly Python API will become a premium-only feature?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea