-
Notifications
You must be signed in to change notification settings - Fork 289
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
Get 404: not found during authentication - DO NOT USE v4.13.8! Solution: Revert to v4.13.7 #2677
Comments
192.168.50.183:8123 |
Hello, I have exactly the same problem with exactly the same configuration as m1r4x. |
The There's zero instances in AMP for that path. Is there anything in the debug logs??
|
Yes, the page (is it a page?) appears after I click Sign in in the Amazon form. |
Till here it is correct When I click Sign in I get the error (and the wrong url) |
Anyway this issue is equal to #2318 discussion. |
When you use your Amazon login normally, are you having to enter an OTP or just email & password. If email & password only works, then you've not configured 2SV properly in Amazon as it has to be required all the time for AMP to be able to use OTP. Also, Send me a Code does not work either. |
AMP needs a major rewrite to eliminate all of this and just prepare itself to send you to Amazon to authenticate yourself however you like so that it can get the damn cookie that it needs to get itself going. This is the way alexa-remote2 works (it's called "proxy method") which is much simpler and never requires your email, password or OTP codes. You just have to manually browse to http://<your_local_ip>:3456 and successfully log in to Amazon. Once that is completed, the browser page informs you it's done and you can close the window. It now has the initial login session cookie and bob's yer uncle. |
|
So when you sign into Amazon normally, you have to provide email, password and OTP? |
Typically I get a notification on Amazon app on my phone "somebody tried to login to your Amazon account....approve or not approve?" Same if I change the preferred method to "use sms to your phone" in Amazon security settings |
I'm 99.99% positive that is interrupting the proxy callback method as it introduces an additional screen which AMP is not programmed to handle. It can only deal with 2 URL changes: email+password then OTP after which it returns to HA. In your case you are getting email+password, then notification screen after which the proxy callback returns to HA and therefore thus you never see the OTP screen. I can't find any such option in my amazon.ca personal account. Perhaps you have something in your browser preventing Amazon cookies from being saved? |
You need to find a way to stop Amazon from alerting you if it's not a new sign in attempt. |
I'm struggling with 500 server error. I have OTP with authenticator app configured, but when trying to install the integration the browser asks email + pwd then catchpa page then 500 server error. So if it only supports 2 redirects that could be the reason for many 500 errors. Do you have a suggestion what can I do to make sure amazon asks otp insted of catchpa? Tried different browsers/ sign out / remove data etc. |
No way to get it work. |
When you login normally, does it always present a captcha? |
hi all, I don't think this localized to m1r4x's region or setup. I'm in the US and I'm experiencing very similar problems. |
Glad I'm not alone |
I also have the same issue here in US. But I am using NABA Casa, does that change what should be in the URL field? |
Local URL? No. It needs to be the URL that the browser you are running to do all this from can use to access your homeassistant instance from. I.e. if the browser and HA are both local, then http://homeassistant.local:8123 (or http://192.168.1.x:8123). It's only needed/used during initial setup for the proxy callback after Alexa/Amazon initial login to validate credentials and is never used again after that. |
UK here and unable to get Alexa Media Player configured and working. Similar problems to the above. I installed it via HACs, then go to Settings > Devices and Services > Add Integration > Alexa Media Player.
Submit >> confirm the 2FA code provided by Alexa Media Player back on Amazon and confirm in the interface. Then takes me to Amazon sign in page as shown by @danielbrunt57. Follow those steps. Use the 2FA code automatically filled in. Tick boxes to remember me. Returns to the integration set up, looks like it's about to work and then "Alexa Media Player failed to login": Nothing helpful in the logs. I'm on the latest HA. Is this integration now working for new setups, at present, or is there something wrong with my setup or the steps I'm taking? I've tried 6 times, so now got 5 "apps" on my Amazon 2FA that don't work. Best wishes, |
Use version 4.13.7. v4.18.8 is bad. PR to undo it has been merged into Dev but Alan hasn't bundled a new version release yet. |
I reverted to 4.13.7 but I still get the error 404 |
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 get 404: page not found error when I click on Sign in in the external page opened when I try to add the integration.
To Reproduce
Screenshots
System details
const.py
or HA startup log): 4.13.8pip show alexapy
in homeasssistant container or HA startup log): 1.29.4Debug Logs (alexa_media & alexapy)
Please provide logs.
Additional context
I tried with and without 2FA key (I validated the OTP correctly). same result.
I tried to Deactivate and activate again the 2FA in amazon but get same result.
The text was updated successfully, but these errors were encountered: