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

SSL Error #3

Open
shyyawn opened this issue Dec 5, 2017 · 2 comments
Open

SSL Error #3

shyyawn opened this issue Dec 5, 2017 · 2 comments

Comments

@shyyawn
Copy link

shyyawn commented Dec 5, 2017

Hi,
I am getting an SSL certificate, while using the plugin.

Code:

logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)

sh = SlackHandler(username='logger', icon_emoji=':robot_face:', url=buildConfig['slack']['url'])
sh.setLevel(logging.DEBUG)


f = SlackFormatter()
sh.setFormatter(f)
logger.addHandler(sh)

Log:

Traceback (most recent call last): File "/usr/lib/python3.6/logging/handlers.py", line 1174, in emit h.endheaders() File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.6/http/client.py", line 1026, in _send_output self.send(msg) File "/usr/lib/python3.6/http/client.py", line 964, in send self.connect() File "/usr/lib/python3.6/http/client.py", line 1400, in connect server_hostname=server_hostname) File "/usr/lib/python3.6/site-packages/gevent/_ssl3.py", line 60, in wrap_socket _session=session) File "/usr/lib/python3.6/site-packages/gevent/_ssl3.py", line 232, in __init__ raise x File "/usr/lib/python3.6/site-packages/gevent/_ssl3.py", line 228, in __init__ self.do_handshake() File "/usr/lib/python3.6/site-packages/gevent/_ssl3.py", line 545, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) Call stack: File "/usr/lib/python3.6/site-packages/gevent/greenlet.py", line 536, in run result = self._run(*self.args, **self.kwargs) File "/usr/lib/python3.6/site-packages/gevent/baseserver.py", line 26, in _handle_and_close_when_done return handle(*args_tuple) File "/usr/lib/python3.6/site-packages/gevent/pywsgi.py", line 1482, in handle handler.handle() File "/usr/lib/python3.6/site-packages/gevent/pywsgi.py", line 454, in handle result = self.handle_one_request() File "/usr/lib/python3.6/site-packages/gevent/pywsgi.py", line 671, in handle_one_request self.handle_one_response() File "/usr/lib/python3.6/site-packages/gevent/pywsgi.py", line 935, in handle_one_response self.run_application() File "/usr/lib/python3.6/site-packages/geventwebsocket/handler.py", line 87, in run_application return super(WebSocketHandler, self).run_application() File "/usr/lib/python3.6/site-packages/gevent/pywsgi.py", line 909, in run_application self.process_result() File "/usr/lib/python3.6/site-packages/gevent/pywsgi.py", line 893, in process_result for data in self.result: File "/usr/lib/python3.6/site-packages/werkzeug/debug/__init__.py", line 284, in debug_application app_iter = self.app(environ, start_response) File "/usr/lib/python3.6/site-packages/flask/app.py", line 1997, in __call__ return self.wsgi_app(environ, start_response) File "/usr/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app response = self.full_dispatch_request() File "/usr/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request rv = self.dispatch_request() File "/usr/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request return self.view_functions[rule.endpoint](**req.view_args)

Can you help me out on this, did I miss some configuration?

@junhwi
Copy link
Owner

junhwi commented Dec 20, 2017

@RJ797
Copy link

RJ797 commented Aug 12, 2021

@shyyawn Do you have a soultion? Thanks.

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

3 participants