alexa_media_player icon indicating copy to clipboard operation
alexa_media_player copied to clipboard

Can not complete the configuration 404 not found

Open chrismalyon opened this issue 2 years ago • 7 comments

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:

  1. Go to 'follow the wiki guide on installation'
  2. Click on 'when the box appears about opening external website Login and wait for the error'
  3. 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

chrismalyon avatar Sep 12 '22 16:09 chrismalyon

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.

chrismalyon avatar Sep 12 '22 18:09 chrismalyon

Please use the template.

alandtse avatar Sep 12 '22 19:09 alandtse

Please use the template.

I have updated to the template.

chrismalyon avatar Sep 12 '22 19:09 chrismalyon

Please enable logs for authcaptureproxy, alexapy, and alexa_media.

alandtse avatar Sep 12 '22 20:09 alandtse

Im not sure how to enable logging specifically for these.

chrismalyon avatar Sep 15 '22 07:09 chrismalyon

Logs Please provide logs. We'll be most likely asking for them anyway. Nothing appears in the logs

alandtse avatar Sep 15 '22 07:09 alandtse

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.

alandtse avatar Sep 16 '22 04:09 alandtse

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.

chrismalyon avatar Nov 02 '22 14:11 chrismalyon

The issue has received no activity for 60 days and will be closed in a week.

github-actions[bot] avatar Jan 02 '23 02:01 github-actions[bot]