chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

[Bug] Getting spammed with SSL Handshake Error when ru

Open leehanchung opened this issue 2 years ago • 6 comments
trafficstars

The web application runs, but on the terminal I am getting spammed with SSL Certificate Verify Failed errors.

0608 23:35:42.397180000 6108459008 ssl_transport_security.cc:1420] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.

leehanchung avatar Jun 09 '23 06:06 leehanchung

Are you running it locally or deployed somewhere?

willydouhard avatar Jun 09 '23 08:06 willydouhard

https://github.com/Chainlit/chainlit/issues/46#issue-1749227601

SurachaiJaisan avatar Jun 09 '23 08:06 SurachaiJaisan

Running locally, behind VPN.

Whats this SSL thing about?

leehanchung avatar Jun 09 '23 14:06 leehanchung

I am not entirely sure. Could you try to install from the wheel in this PR (at the end of the description) https://github.com/Chainlit/chainlit/pull/40 and just run chainlit hello? This version is not released but curious to see if it fixes the issue. Can you also try the current version without the VPN?

willydouhard avatar Jun 09 '23 14:06 willydouhard

This package currently would not pass security audit and will prevent wider adoption.

Specifically,

  • telemetry is coupled to uptrace instead of letting user choice/implement their own
  • deployment/auth seems to be coupled to chainlit service.

I cannot run it without VPN for work purposes. The PR looks better but telemetry problem continue to exist.

leehanchung avatar Jun 10 '23 07:06 leehanchung

Thank you for your feedback. I agree these things are coupled for now and we definitely want to decouple them to make sure everyone could drop in their own solution!

willydouhard avatar Jun 10 '23 09:06 willydouhard

Should be fixed in the latest version 0.3.0. Please note that it contains breaking changes. We prepared a migration guide to make it easy for everyone.

willydouhard avatar Jun 13 '23 16:06 willydouhard

I'm still get spammed with the latest version 0.6.0:

E0803 10:24:54.236101000 123145547419648 ssl_transport_security.cc:1455] Handshake failed with fatal error SSL_ERROR_SSL: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.

which I don't know if it leads to a pop-up saying "Could not reach the server."

Kyle0936 avatar Aug 03 '23 17:08 Kyle0936

Are you using chroma db by any chance?

willydouhard avatar Aug 03 '23 23:08 willydouhard

I don't think so. The spam will start when I only run "chainlit hello".

For the pop-up that appeared, I was trying to run this project: https://github.com/AIAnytime/Llama2-Medical-Chatbot

Kyle0936 avatar Aug 03 '23 23:08 Kyle0936

Did you try to disable the telemetry? You can set the enable_telemetry in your .chainlit/config.toml file to false.

willydouhard avatar Aug 03 '23 23:08 willydouhard

That did solve the problem for me. Thanks.

Kyle0936 avatar Aug 03 '23 23:08 Kyle0936