Created
October 1, 2014 06:13
-
-
Save w00kie/5b19d740c4757ac1139e to your computer and use it in GitHub Desktop.
SSL error on Paymium API with Python requests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python 2.7.6 (default, Mar 22 2014, 22:59:56) | |
[GCC 4.8.2] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import requests | |
>>> requests.get('https://paymium.com/api/v1/data/eur/ticker') | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/home/vagrant/.virtualenvs/btcfxrate/local/lib/python2.7/site-packages/requests/api.py", line 59, in get | |
return request('get', url, **kwargs) | |
File "/home/vagrant/.virtualenvs/btcfxrate/local/lib/python2.7/site-packages/requests/api.py", line 48, in request | |
return session.request(method=method, url=url, **kwargs) | |
File "/home/vagrant/.virtualenvs/btcfxrate/local/lib/python2.7/site-packages/requests/sessions.py", line 451, in request | |
resp = self.send(prep, **send_kwargs) | |
File "/home/vagrant/.virtualenvs/btcfxrate/local/lib/python2.7/site-packages/requests/sessions.py", line 557, in send | |
r = adapter.send(request, **kwargs) | |
File "/home/vagrant/.virtualenvs/btcfxrate/local/lib/python2.7/site-packages/requests/adapters.py", line 420, in send | |
raise SSLError(e, request=request) | |
requests.exceptions.SSLError: hostname 'paymium.com' doesn't match either of '*.bitcoin-central.net', 'bitcoin-central.net' | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment