Troubleshooting Common Issues in dpkp Kafka-python
Troubleshooting dpkp Kafka-python with the Lightrun Developer Observability Platform
Getting a sense of what’s actually happening inside a live application is a frustrating experience, one that relies mostly on querying and observing whatever logs were written during development.
Lightrun is a Developer Observability Platform, allowing developers to add telemetry to live applications in real-time, on-demand, and right from the IDE.
- Instantly add logs to, set metrics in, and take snapshots of live applications
- Insights delivered straight to your IDE or CLI
- Works where you do: dev, QA, staging, CI/CD, and production
The following issues are the most popular issues regarding this project:
Keep getting SSL.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1076)
To ensure optimum results, I have implemented an SSLContext as a circumventing solution.
cert = "user.crt" key = "user.key" context = ssl.create_default_context() context.load_cert_chain(certfile=cert, keyfile=key) context.check_hostname = False context.verify_mode = ssl.CERT_NONE self.ssl_context = context self.security_protocol = "SSL"
It’s Really not that Complicated.
You can actually understand what’s going on inside your live applications. It’s a registration form away.