-
Notifications
You must be signed in to change notification settings - Fork 302
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 (KeyError: 'public_url') #2554
Comments
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. |
Same problem. Try to setup this integration for the first time. I login and got redirected to the login page again and again. |
Same issue, older version stopped working, and then went with the latest but get a loop at amz login. |
Here #2514 there is a halfway solution... |
Thank you! That worked for me. |
Yep that worked for me. Thanks @nstyqz |
I can't get by this continuous loop. The work around does not work for me |
Did you use the amazon.com url? |
Tried all of the above workaround and also other threads. Nothing works. Always get an empty error message in the end. Log files say: Usage via NabuCasa. Tried with and without VPN, other browsers. No changes. Reset to 4.11.2 changed nothing as well |
For the proxy login process, the |
Local URL ist set to the local HA IP and Port like http://192.168.1.XXX:8123 |
Same issue as all above Tried everything that was given here. My Versions: HA Alexa_Media Log is attached: messages:
home-assistant_2024-09-25T15-24-35.340Z.log Thanks for any sollution. Maybe i can get my system running again. I really miss this notify. |
2024-09-25 10:42:15.020 WARNING has nothing to do with any errors |
I have encountered several of the errors reported (re-auth, cannot concatenate None type str error, etc.) but was always able to fix as follows... First, make sure OTP/Amazon 2SV via App is set up correctly and that you have provided the OTP secret to AMP so that it can generate new OTP codes when it needs to reauthenticate with Amazon.
If so, delete them, restart HA and verify they do not exist. |
Still not working :-( |
Same problem! Logger: homeassistant.util.loop Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0x7f73da4fd0>, '/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 For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_verify_locations Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 541, in start task = asyncio.Task(coro, loop=loop, eager_start=True) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 462, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 537, in _handle resp = await handler(request) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 85, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware response = await handler(request) File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle result = await handler(request, **request.match_info) File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin return await func(self, request, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 222, in post return await super().post(request, flow_id) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper return await method(view, request, data, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 122, in post result = await self._flow_mgr.async_configure(flow_id, data) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 366, in async_configure result = await self._async_configure(flow_id, user_input) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 413, in _async_configure result = await self._async_handle_step( File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 516, in _async_handle_step result: _FlowResultT = await getattr(flow, method)(user_input) File "/config/custom_components/alexa_media/config_flow.py", line 278, in async_step_user self.login = AlexaLogin( |
No solution to this yet? Still empty error message and the configuration is not possible. Tried all variants in this thread, no workaround works. |
I rely on Alexa to give me voice alerts if a water leak sensor detects a water leak. So... for me this is an essential addon, which could potentially save me from extensive damage and huge costs. I appreciate the hard work put into this and hope the issue can be resolved soon. Everything suggested, does not work reliably for me as well.... |
I was having the same issue yesterday, and the solution I found was restore a old backup before your update (I used the version 2024.8.2 see picture below), and then it just works (at least for me) |
Hi @markosiegl 👍 |
After restarting Home Assistant, AMP no longer started. I found the following error message in the logs:
I then uninstalled AMP and used the workaround from @danielbrunt57 to try a new installation. The workaround works. Only after 2FA and switching to the Home Assistant interface, an empty error message appears and that's it. I then find the following error in the logs:
Seems to be the same error as at the beginning and also something to do with |
Sadly you are not alone with this i got this empty error as well. In the logs:
Maybe the API-URL changed? |
I don't think this is a direct AMP problem, but rather one related to alexapy and aiohttp. According to the Amazon documentation, the end points have not changed. |
Are any of you using an ad blocker/firewall such as Pi-hole or AdGuard by chance? Some adlists were recently updated to block the Amazon Alexa API. This is solved by adding |
^^^ This! In my AdGuard, this url is new on a block list. for now. :) |
Yes I do! Why the hell didn't I think if this? Will try asap and report back..... |
@Joeslinky THAT DID IT! Thank you! |
I feel like such a DAU (dümmster anzunehmender User ) - roughly translated DIU (dumbest imaginable user)..... Pi-hole blocked api.eu.amazonalexa.com and api.amazonalexa.com. After I whitelisted them both it worked..... THANKS for the nudge into the correct direction! |
Holy shit, how stupid can I be? That's it. Why didn't I think of that myself? 🤦♂️ |
where do I find that blocking setting - Is it in HASS or my setup PC?
thanks
…On Mon, 30 Sept 2024 at 16:39, z-master42 ***@***.***> wrote:
Holy shit, how stupid can I be? That's it. Why didn't I think of that
myself? 🤦♂️
—
Reply to this email directly, view it on GitHub
<#2554 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQEIO6SEF7XYG266KRWALU3ZZDWYPAVCNFSM6AAAAABOUGDPBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBSGIZTGNZXGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
*Michael Brooks*
|
It wouldn't be in HASS but rather any ad blocker/firewall on your network. |
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
Expected behavior
successful installation - but it stops after final password entry
Screenshots
System details
const.py
or HA startup log):pip show alexapy
in homeasssistant container or HA startup log):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
The text was updated successfully, but these errors were encountered: