Replies: 1 comment 5 replies
-
@jgleigh - I can't really comment on the other errors, however can on this one...
Check here for some background on this: jasonacox/pypowerwall#20 This is pretty normal behaviour when using persistent HTTP connections and I don't believe the WARNING is anything to be concerned about. There is a default pool size limit of 10 for persistent connections however. What that means is, up to 10 connections to the local gateway will be established simultaneously to serve the API requests (and no more). Those connections are re-used for requests, which is much more efficient than opening/closing a connection for each request (see thread link above for my testing on this). You could adjust/increase the pool size if you like (see thread for the config option), however be aware the Tesla gateway may actually limit the number of simultaneous HTTP connections allowed (have not tested). |
Beta Was this translation helpful? Give feedback.
-
2023-04-21 17:58:20 04/21/2023 05:58:20 PM [proxy] [INFO] pyPowerwall [0.6.2] Proxy Server [t25] - HTTP Port 8675
2023-04-21 17:58:20 04/21/2023 05:58:20 PM [proxy] [INFO] pyPowerwall Proxy Started
Everyday or so:
2023-04-27 02:15:00 04/27/2023 02:15:00 AM [proxy] [ERROR] Missing key in payload [PINV_Fout]
2023-04-27 02:15:00 04/27/2023 02:15:00 AM [proxy] [ERROR] Missing key in payload [PINV_VSplit1]
2023-04-27 02:15:00 04/27/2023 02:15:00 AM [proxy] [ERROR] Missing key in payload [PINV_VSplit2]
and lots of:
2023-04-27 03:57:45 04/27/2023 03:57:45 AM [urllib3.connectionpool] [WARNING] Connection pool is full, discarding connection: 192.168.1.6. Connection pool size: 10
and occasionally strange errors like this:
2023-04-21 16:09:05 ----------------------------------------
2023-04-21 16:09:05 Exception occurred during processing of request from ('172.22.0.2', 57742)
2023-04-21 16:09:05 Traceback (most recent call last):
2023-04-21 16:09:05 File "/usr/local/lib/python3.10/socketserver.py", line 683, in process_request_thread
2023-04-21 16:09:05 self.finish_request(request, client_address)
2023-04-21 16:09:05 File "/usr/local/lib/python3.10/socketserver.py", line 360, in finish_request
2023-04-21 16:09:05 self.RequestHandlerClass(request, client_address, self)
2023-04-21 16:09:05 File "/usr/local/lib/python3.10/socketserver.py", line 747, in init
2023-04-21 16:09:05 self.handle()
2023-04-21 16:09:05 File "/usr/local/lib/python3.10/http/server.py", line 433, in handle
2023-04-21 16:09:05 self.handle_one_request()
2023-04-21 16:09:05 File "/usr/local/lib/python3.10/http/server.py", line 421, in handle_one_request
2023-04-21 16:09:05 method()
2023-04-21 16:09:05 File "/app/server.py", line 227, in do_GET
2023-04-21 16:09:05 pod["PW%d_POD_ActiveHeating" % idx] = int(get_value(d, 'POD_ActiveHeating'))
2023-04-21 16:09:05 TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
2023-04-21 16:09:05 ----------------------------------------
2023-04-20 20:31:20 ----------------------------------------
2023-04-20 20:31:20 Exception occurred during processing of request from ('172.22.0.4', 50576)
2023-04-20 20:31:20 Traceback (most recent call last):
2023-04-20 20:31:20 File "/usr/local/lib/python3.10/socketserver.py", line 683, in process_request_thread
2023-04-20 20:31:20 self.finish_request(request, client_address)
2023-04-20 20:31:20 File "/usr/local/lib/python3.10/socketserver.py", line 360, in finish_request
2023-04-20 20:31:20 self.RequestHandlerClass(request, client_address, self)
2023-04-20 20:31:20 File "/usr/local/lib/python3.10/socketserver.py", line 747, in init
2023-04-20 20:31:20 self.handle()
2023-04-20 20:31:20 File "/usr/local/lib/python3.10/http/server.py", line 433, in handle
2023-04-20 20:31:20 self.handle_one_request()
2023-04-20 20:31:20 File "/usr/local/lib/python3.10/http/server.py", line 421, in handle_one_request
2023-04-20 20:31:20 method()
2023-04-20 20:31:20 File "/app/server.py", line 202, in do_GET
2023-04-20 20:31:20 for device in vitals:
2023-04-20 20:31:20 TypeError: 'NoneType' object is not iterable
2023-04-20 20:31:20 ----------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions