ginoledesma / sunpower-pvs-exporter

A Prometheus Exporter for the SunPower PVS monitoring system
MIT License
78 stars 25 forks source link

Exceptions When Running sunpower-pvs-exporter (but I can still get stats from curl localhost:9110) #6

Open refrain opened 3 years ago

refrain commented 3 years ago

2020-09-18 15:18:51,857 Listening on port 9110... Traceback (most recent call last): File "/usr/lib/python3.7/wsgiref/handlers.py", line 138, in run self.finish_response() File "/usr/lib/python3.7/wsgiref/handlers.py", line 180, in finish_response self.write(data) File "/usr/lib/python3.7/wsgiref/handlers.py", line 274, in write self.send_headers() File "/usr/lib/python3.7/wsgiref/handlers.py", line 332, in send_headers self.send_preamble() File "/usr/lib/python3.7/wsgiref/handlers.py", line 255, in send_preamble ('Date: %s\r\n' % format_date_time(time.time())).encode('iso-8859-1') File "/usr/lib/python3.7/wsgiref/handlers.py", line 453, in _write result = self.stdout.write(data) File "/usr/lib/python3.7/socketserver.py", line 799, in write self._sock.sendall(b) BrokenPipeError: [Errno 32] Broken pipe

Exception happened during processing of request from ('127.0.0.1', 36896) Traceback (most recent call last): File "/usr/lib/python3.7/wsgiref/handlers.py", line 138, in run self.finish_response() File "/usr/lib/python3.7/wsgiref/handlers.py", line 180, in finish_response self.write(data) File "/usr/lib/python3.7/wsgiref/handlers.py", line 274, in write self.send_headers() File "/usr/lib/python3.7/wsgiref/handlers.py", line 332, in send_headers self.send_preamble() File "/usr/lib/python3.7/wsgiref/handlers.py", line 255, in send_preamble ('Date: %s\r\n' % format_date_time(time.time())).encode('iso-8859-1') File "/usr/lib/python3.7/wsgiref/handlers.py", line 453, in _write result = self.stdout.write(data) File "/usr/lib/python3.7/socketserver.py", line 799, in write self._sock.sendall(b) BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.7/wsgiref/handlers.py", line 141, in run self.handle_error() File "/usr/lib/python3.7/wsgiref/handlers.py", line 368, in handle_error self.finish_response() File "/usr/lib/python3.7/wsgiref/handlers.py", line 180, in finish_response self.write(data) File "/usr/lib/python3.7/wsgiref/handlers.py", line 274, in write self.send_headers() File "/usr/lib/python3.7/wsgiref/handlers.py", line 331, in send_headers if not self.origin_server or self.client_is_modern(): File "/usr/lib/python3.7/wsgiref/handlers.py", line 344, in client_is_modern return self.environ['SERVER_PROTOCOL'].upper() != 'HTTP/0.9' TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.7/socketserver.py", line 650, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python3.7/socketserver.py", line 360, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python3.7/socketserver.py", line 720, in init self.handle() File "/usr/lib/python3.7/wsgiref/simple_server.py", line 133, in handle handler.run(self.server.get_app()) File "/usr/lib/python3.7/wsgiref/handlers.py", line 144, in run self.close() File "/usr/lib/python3.7/wsgiref/simple_server.py", line 35, in close self.status.split(' ',1)[0], self.bytes_sent AttributeError: 'NoneType' object has no attribute 'split'

refrain commented 3 years ago

FYI I'm using the version installed from "pip install sunpower-pvs-exporter"