-
Notifications
You must be signed in to change notification settings - Fork 10
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
Unhandled wsgiref exception in log #397
Comments
The SSLEOFError exception needs be handled when call the "start_http_server" function. |
@Charles1000Chen The code already catches I think what probably happens is that the ssl exception is raised in the thread that is started. |
I put up PR #413 which in the HTTPS case simplifies the error message but keeps on catching
Note that the error reported by you is not part of these tests. I suspect that reproducing that error would require cutting off the network between Prometheus and the zhmc exporter during the TLS handshake, which is hard to reproduce for me. I think the improvement in PR #413 is as much as we can do in the zhmc exporter, because the handling of exceptions raised by the HTTP/HTTPS server while it runs would need to be done by the Python Prometheus client code, and not by the zhmc exporter code. If you have indications that the above is incorrect, please let me know. |
@andy-maier I basically agree with you. Currently, the error can be seen in my test every once in a while. Could we catch the |
@Charles1000Chen Yes, i can open up the type of exceptions from |
Beta version 1.5.0b3 has been released, with the change to the exception handling. The exception handling change is only to be double sure that the I'll leave this issue open, since it is not solved yet. Once the exception reoccurs we will investigate what else can be done. |
I am closing his issue and will release the official 1.5.0 version today. If the problem re-occurs, please reopen this issue or open a new issue. |
Describe the bug
The following error from the wsgiref package in ZHMC prometheus exporter log is unhandled:
Expected behavior
The wsgiref exception should be catched by zhmc prometheus exporter and output understandable error message.
To Reproduce
<-- Describe the steps to reproduce the behavior. -->
Environment information
zhmc_prometheus_exporter --version
:1.5.0.dev1
N/A
Command output
<-- Relevant parts of the command output. If possible, with '-vv'. -->
Log file
<-- If possible, attach a log file generated with '--log-comp all=debug --log exporter.log'. -->
The text was updated successfully, but these errors were encountered: