jasonacox / pypowerwall

Python API for Tesla Powerwall and Solar Power Data
MIT License
120 stars 21 forks source link

Critical Bug - 404 HTTP Status Code Handling #65

Closed jasonacox closed 5 months ago

jasonacox commented 5 months ago

There is a bug identified in the current pypowerwall release on how 404 HTTP status codes are handled.

Firmware version 23.44.0 has eliminated /api/devices/vitals resulting in a 404 response from the Powerwall Gateway (TEG) when this is requested. There is a bug in the pypowerwall code that will treat this 404 like an authentication failure which will result in attempts to log in over and over, eventually hitting the rate limit. This is especially impactful for those using the proxy for things like Powerwall-Dashboard as the rate limit will prohibit other data gathering.

Related issue: https://github.com/jasonacox/pypowerwall/issues/57

A fix is underway...