alandtse / alexa_media_player

This is a custom component to allow control of Amazon Alexa devices in Home Assistant using the unofficial Alexa API.
Apache License 2.0
1.36k stars 263 forks source link

CookieError: Invalid attribute 'partitioned' #2297

Open membersound opened 6 days ago

membersound commented 6 days ago

Describe the bug Suddenly alexa integration is not availabile in automations anymore, without toughting HA. See logs below, has something to do with Cookies?

To Reproduce

Every other day the alexa addon is suddenly in state "failed to setup", even though I did not restart HomeAssistant!

Expected behavior The component should start

System details

Logs

Logger: homeassistant.config_entries
Source: config_entries.py:594
First occurred: 3:30:38 AM (1 occurrences)
Last logged: 3:30:38 AM
Error setting up entry daniel_kotyk@hotmail.com - amazon.de for alexa_media

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/alexa_media/__init__.py", line 335, in async_setup_entry
    await login.login(cookies=await login.load_cookie())
                              ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/alexapy/alexalogin.py", line 328, in load_cookie
    cookies = pickle.loads(await myfile.read())
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/http/cookies.py", line 312, in __setitem__
    raise CookieError("Invalid attribute %r" % (K,))
http.cookies.CookieError: Invalid attribute 'partitioned'
danielbrunt57 commented 2 days ago

This is a duplicate of Issue #2288.

myevit commented 11 hours ago

Same issue, same logs. Had to roll back to previous release.