IceBotYT / lacrosse_view

A Python library for communicating with La Crosse View-connected devices
MIT License
5 stars 2 forks source link

Error 503 on logout #3

Open uglycoyote opened 1 year ago

uglycoyote commented 1 year ago

This is awesome! I have it working and I get the sensor data but the logout code is crashing with HTTP 503.

Exception has occurred: HTTPError
Failed to logout, status code: 503
  File "/home/mike/weather/lacrosse_view/__init__.py", line 261, in logout
    raise HTTPError(f"Failed to logout, status code: {str(response.status)}")
  File "/home/mike/weather/GetWeather.py", line 37, in get_data
    await api.logout()
  File "/home/mike/weather/GetWeather.py", line 39, in <module>
    asyncio.run(get_data())

just curious if you get this as well, and whether you know if there's a solution.

FYI 503 is Service Unavailable https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503

IceBotYT commented 1 year ago

Yeah logout doesn't work. I should deprecate it and remove it in a future update :)