Alexa Media Player - 'FixedCookieJar' object has no attribute '_quote_cookie'

Hello,

Just trying to solve a new issue with the Alexa Media Player since 0.118.0.

Alexa Media Player fails to login to Alexa account and throws the following exception:

2020-11-23 14:27:14 ERROR (MainThread) [alexapy.helpers] alexalogin.login:An error occured accessing AlexaAPI: An exception of type AttributeError occurred. Arguments:
("'FixedCookieJar' object has no attribute '_quote_cookie'",)
2020-11-23 14:27:14 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry [email protected] - amazon.com for alexa_media
Traceback (most recent call last):
  File "/opt/pyenv/versions/3.8.1/lib/python3.8/site-packages/homeassistant/config_entries.py", line 236, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/home/.homeassistant/custom_components/alexa_media/__init__.py", line 220, in async_setup_entry
    await login.login_with_cookie()
  File "/home/.homeassistant/deps/lib/python3.8/site-packages/alexapy/alexalogin.py", line 201, in login_with_cookie
    await self.login(cookies=self._cookies)
  File "/home/.homeassistant/deps/lib/python3.8/site-packages/alexapy/helpers.py", line 69, in wrapper
    return await func(*args, **kwargs)
  File "/home/.homeassistant/deps/lib/python3.8/site-packages/alexapy/alexalogin.py", line 374, in login
    if cookies and await self.test_loggedin(cookies):
  File "/home/.homeassistant/deps/lib/python3.8/site-packages/alexapy/alexalogin.py", line 275, in test_loggedin
    get_resp = await self._session.get(
  File "/opt/pyenv/versions/3.8.1/lib/python3.8/site-packages/aiohttp/client.py", line 481, in _request
    all_cookies = self._cookie_jar.filter_cookies(url)
  File "/opt/pyenv/versions/3.8.1/lib/python3.8/site-packages/aiohttp/cookiejar.py", line 221, in filter_cookies
    SimpleCookie() if self._quote_cookie else BaseCookie()
AttributeError: 'FixedCookieJar' object has no attribute '_quote_cookie'

Does anyone have any thoughts on how to resolve this? Versions previous to 0.118 does not throw this exception. i.e. Downgrading to 0.117.6 works perfectly.

thanks,
Ken

1 Like

same error i get :frowning: