alexa_media_player
alexa_media_player copied to clipboard
Can not complete the configuration 404 not found
Describe the bug
I had to reinstall and now when I complete the setup and I get to the last step of login in http://homeassistant.local:8123/auth/alexamedia/proxy? it accepts the log but then redirects to http://homeassistant.local:8123/ap/cvf/approval which doesn't appear to exist and displays a message 404: Not Found
To Reproduce Steps to reproduce the behavior:
- Go to 'follow the wiki guide on installation'
- Click on 'when the box appears about opening external website Login and wait for the error'
- See error: 404: Not Found
Expected behavior page to load normally and the plugin to proceed with the setup.
System details
- Home-assistant (version): 2022.9.2
- 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).
- alexa_media (version from
const.py
or HA startup): 4.1.2 - alexapy (version from
pip show alexapy
or HA startup): - Amazon 2FA is enabled (y/n). We will not debug login issues if unanswered: Y
Logs Please provide logs. We'll be most likely asking for them anyway. Nothing appears in the logs
It seems to be an issue with callback. If I manually paste this in (http://homeassistant.local:8123/auth/alexamedia/callback?flow_id%3D0a34a4349519b0e461b0ed16aae1375e) then the plugin states loading next steps but after some time it just errors.
Please use the template.
Please use the template.
I have updated to the template.
Please enable logs for authcaptureproxy, alexapy, and alexa_media.
Im not sure how to enable logging specifically for these.
Logs Please provide logs. We'll be most likely asking for them anyway. Nothing appears in the logs
Based on the logs, please get the html source of the following pages. I truncated them so you'll need to find the full get request from your logs and then try to login through your browser. I just need the source.
- https://www.amazon.com/ap/challenge?
- https://www.amazon.com/ap/cvf/transactionapproval
I'm not sure why Amazon is sending you to a new set of pages instead of the standard OTP page. It looks like you have a 2FA 2fa app right? It shouldn't be sending you to these extra pages.
I still haven't managed to resolve this however I think I can see why it fails. When I complete the Amazon Authentication, Amazon requires me to open the Amazon app on my phone and press approve. It doesnt allow me to just enter a OTP. I have yet been unable to find how to force the Amazon login to use OTP instead of app approval but I think this is why amazon is sending me to the different pages and causing the integration to fail. If you have any ideas or advice on how to work around this it would be appreciated.
The issue has received no activity for 60 days and will be closed in a week.