Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not able to install - failing at final step #2554

Open
MikeatLorne opened this issue Sep 22, 2024 · 7 comments
Open

not able to install - failing at final step #2554

MikeatLorne opened this issue Sep 22, 2024 · 7 comments

Comments

@MikeatLorne
Copy link

IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure.

Describe the bug

I am installing Alexa Media player (I've done it before) and it is failing on the final login to Amazon via home assistant

To Reproduce

  1. Go to 'integrations - select alexa_media_player
  2. Click on multiple steps including access to Amazon.com
  3. Fails to update after final entry of Amazon password
  4. See error

Expected behavior

successful installation - but it stops after final password entry

Screenshots

System details

  • Home Assistant version: 2024.09.1
  • alexa_media version (from const.py or HA startup log):
  • alexapy version (from pip show alexapy in homeasssistant container or HA startup log):
  • Is Amazon 2FA/2SV enabled <!---We will not debug login issues if unanswered---> (y/n):
  • Amazon Domain: amazon.com

Debug Logs (alexa_media & alexapy)
2024-09-22 11:14:42.207 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration alexa_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-09-22 11:14:42.815 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'device_tracker', 'amberelectric', 'media_source', 'assist_pipeline', 'group', 'template', 'history', 'xiaomi_ble', 'mobile_app', 'default_config', 'bluetooth_adapters', 'frigate', 'scene', 'counter', 'logbook', 'watchman', 'tts', 'tesla_custom', 'onboarding', 'input_text', 'variable', 'blueprint', 'application_credentials', 'bureau_of_meteorology', 'backup', 'lifx', 'script', 'hacs', 'zone', 'lovelace', 'integration', 'automation', 'conversation', 'powerwall', 'tasmota', 'intent', 'sun', 'search', 'nut', 'config', 'stt', 'diagnostics', 'persistent_notification', 'energy', 'format_ble_tracker', 'stream', 'image_upload', 'ffmpeg', 'sensor', 'hardware', 'localtuya', 'homeassistant_alerts', 'analytics', 'input_select', 'input_datetime', 'trace', 'system_health', 'ocpp', 'input_button', 'schedule', 'esphome', 'alexa_media', 'systemmonitor', 'file_upload', 'mbapi2020', 'sonos', 'input_boolean', 'device_automation', 'smartthinq_sensors', 'wake_word', 'statistics', 'tag', 'timer', 'mqtt', 'map', 'samsungtv', 'my', 'input_number', 'person', 'min_max'}
2024-09-22 11:14:43.457 INFO (MainThread) [homeassistant.setup] Setting up alexa_media
2024-09-22 11:14:43.458 ERROR (MainThread) [homeassistant.setup] Error during setup of component alexa_media
File "/config/custom_components/alexa_media/init.py", line 189, in async_setup
2024-09-22 11:14:43.460 INFO (MainThread) [homeassistant.setup] Setup of domain alexa_media took 0.00 seconds
2024-09-22 11:15:11.462 INFO (MainThread) [homeassistant.components.automation.automatic_updates_alexa_integration] Initialized trigger Automatic updates - Alexa integration
2024-09-22 11:17:27.650 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0x7f4110b62f50>, '/usr/local/lib/python3.12/site-packages/certifi/cacert.pem', None, None) inside the event loop by custom integration 'alexa_media' at custom_components/alexa_media/config_flow.py, line 278: self.login = AlexaLogin( (offender: /usr/local/lib/python3.12/ssl.py, line 708: context.load_verify_locations(cafile, capath, cadata)), please create a bug report at https://github.com/alandtse/alexa_media_player/issues
File "/config/custom_components/alexa_media/config_flow.py", line 278, in async_step_user
self.login = AlexaLogin(
2024-09-22 11:17:46.949 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0x7f4122ddcf50>,) inside the event loop by custom integration 'alexa_media' at custom_components/alexa_media/config_flow.py, line 372: self.proxy = AlexaProxy( (offender: /usr/local/lib/python3.12/site-packages/httpx/_config.py, line 147: context.load_verify_locations(cafile=cafile)), please create a bug report at https://github.com/alandtse/alexa_media_player/issues
File "/config/custom_components/alexa_media/config_flow.py", line 567, in async_step_totp_register
File "/config/custom_components/alexa_media/config_flow.py", line 372, in async_step_start_proxy
self.proxy = AlexaProxy(

Additional context

Logger: homeassistant.setup
Source: setup.py:416
First occurred: 11:30:42 (1 occurrences)
Last logged: 11:30:42

Error during setup of component alexa_media
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component
result = await task
^^^^^^^^^^
File "/config/custom_components/alexa_media/init.py", line 189, in async_setup
CONF_PUBLIC_URL: account[CONF_PUBLIC_URL],
~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'public_url'

I have successfully installed this at another location - so I am familiar with what is required

@kam0106
Copy link

kam0106 commented Sep 22, 2024

Yes I am getting the same issue. Latest verison of Home Assistant OS with latest version of HACS alexa media player. When I validate the install it redirects me to Amazons website where I sign-in, but won't sign-in and keeps looping on the amazon sign-in page.

@EnricoBettella
Copy link

Yes I am getting the same issue. Latest verison of Home Assistant OS with latest version of HACS alexa media player. When I validate the install it redirects me to Amazons website where I sign-in, but won't sign-in and keeps looping on the amazon sign-in page.

Exactly the same here. With the latest HA Core update and Alexa Media Player it's no longer working due to the login loop on the Amazon page.

@kankadev
Copy link

Same problem. Try to setup this integration for the first time. I login and got redirected to the login page again and again.

@yozh
Copy link

yozh commented Sep 22, 2024

Same issue, older version stopped working, and then went with the latest but get a loop at amz login.

@nstyqz
Copy link

nstyqz commented Sep 22, 2024

Here #2514 there is a halfway solution...

@yozh
Copy link

yozh commented Sep 22, 2024

Here #2514 there is a halfway solution...

Thank you! That worked for me.

@kam0106
Copy link

kam0106 commented Sep 22, 2024

Yep that worked for me. Thanks @nstyqz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants