Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eventlet example, use hyper client connect raise openssl error #1147

Open
Weilor opened this issue Apr 2, 2018 · 0 comments
Open

Eventlet example, use hyper client connect raise openssl error #1147

Weilor opened this issue Apr 2, 2018 · 0 comments

Comments

@Weilor
Copy link

Weilor commented Apr 2, 2018

exception is:

Traceback (most recent call last):
  File "/Users/user/.pyenv/versions/h2server/lib/python3.6/site-packages/eventlet/greenpool.py", line 88, in _spawn_n_impl
    func(*args, **kwargs)
  File "origin_eventlet.py", line 31, in run_forever
    self.sock.sendall(self.conn.data_to_send())
  File "/Users/user/.pyenv/versions/h2server/lib/python3.6/site-packages/eventlet/green/OpenSSL/SSL.py", line 101, in sendall
    tail = self.send(data)
  File "/Users/user/.pyenv/versions/h2server/lib/python3.6/site-packages/eventlet/green/OpenSSL/SSL.py", line 81, in write
    return self.fd.write(data)
  File "/Users/user/.pyenv/versions/h2server/lib/python3.6/site-packages/OpenSSL/SSL.py", line 1256, in send
    self._raise_ssl_error(self._ssl, result)
  File "/Users/user/.pyenv/versions/h2server/lib/python3.6/site-packages/OpenSSL/SSL.py", line 1174, in _raise_ssl_error
    _raise_current_error()
  File "/Users/user/.pyenv/versions/h2server/lib/python3.6/site-packages/OpenSSL/_util.py", line 48, in exception_from_error_queue
    raise exception_type(errors)
OpenSSL.SSL.Error: [('SSL routines', 'ssl3_get_record', 'http request')]

client code:

from hyper import HTTPConnection
c = HTTPConnection('localhost:8090')
first = c.request('GET', '/', headers={'key': 'value'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant