alexa_media_player: An exception of type CancelledError occurred.

Describe the bug

I recently removed the integration as my devices were showing as ‘unavailable’. After installing the component again (which went smoothly and allowed logging in) the integration shows no devices even though my account has a number of devices enabled and can be seen in the Alexa iOS app and the Alexa website.

Please see below for the log errors.

To Reproduce Steps to reproduce the behavior:

  1. Removed existing integration and component.
  2. Reinstalled integration and component.
  3. Logged in.
  4. See error logs.

Expected behaviour

Devices should appear in devices/entities after installing and logging in.

Screenshots If applicable, add screenshots to help explain your problem.

N/A

System details

  • Home-assistant (version): 0.110.4 (Docker)
  • Hassio (Yes/No): (Please note you may have to restart hassio 2-3 times to load the latest version of alexapy after an update. This looks like a HA bug). No
  • alexa_media (version from const.py or HA startup): 2.8.3
  • alexapy (version from pip show alexapy or HA startup):

Logs Please provide logs. We’ll be most likely asking for them anyway.

Log Details (ERROR)
Logger: alexapy.helpers
Source: __main__.py:356 
First occurred: 10:02:43 (18 occurrences) 
Last logged: 10:03:56

alexaapi._static_request:An error occured accessing AlexaAPI: An exception of type CancelledError occurred. Arguments: ()
alexaapi.get_bluetooth:An error occured accessing AlexaAPI: An exception of type CancelledError occurred. Arguments: ()
alexaapi.get_dnd_state:An error occured accessing AlexaAPI: An exception of type CancelledError occurred. Arguments: ()
alexaapi.get_authentication:An error occured accessing AlexaAPI: An exception of type CancelledError occurred. Arguments: ()


Log Details (ERROR)
Logger: custom_components.alexa_media
Source: helpers/update_coordinator.py:140 
Integration: Alexa Media Player (documentation) 
First occurred: 10:02:43 (1 occurrences) 
Last logged: 10:02:43

Timeout fetching alexa_media data

Additional context

As mentioned above was working but devices became unavailable hence why removed and reinstalled. Checked to make sure pickle was removed and recreated.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Glad it resolved. I do have a fix planned since I could reproduce it sometimes. I’ll close this out after that fix goes out.