-
Notifications
You must be signed in to change notification settings - Fork 300
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 |
This is one very fustrating integration. Following all the steps as above and some of the apparent workarounds and still end up with 500 Internal Server Error- Server got itself in trouble. I appreciate that the dev. has done this freely and has the capricious Amazon to deal with but this has been going on for months now and never seems to address the issues that many have encountered. It would be good to know if this problems are soluble or if it this is beyond repair given the amazon end of things. Then we can take this out of our HA setups till someone else has a try. |
OTP via SMS or an amazon approval notification will not work as that introduces another step in the auth sequence and AMP's proxy callback is only written to handle one or two callbacks looking for "authentication successful" before it fails. It will be a while before I am able to tear this thing apart and try and write something different to get the initial login successful cookie, which will be along the lines of Apollon's alexa-remote2. But that's a javascript library that's used in Node-RED's |
It exactly what happens to me. The only 2wa method available is through Amazon app and I cannot change it in Amazon security settings. |
I don't understand. Why can you not change your Amazon 2SV settings to use Authenticator App and create/add a new App? |
Sign in to your Amazon domain (i.e. https://amazon.ca, https://amazon.com, etc.) If you already have OTP's being sent to your phone, then...
|
I don't understand your English This is what you said in Italian: "Ricevo sempre l'errore 404. Utilizzando la versione AMP 4.13.7" "Metodo preferito App di autenticazione Cambia 2 applicazioni registrate Aggiungi una nuovo app" |
Hmmm.
That would be this page then... Since you have the error and I do not and cannot test anything, you could try editing
I.e replace |
Yes it is that one. Hm, last time I tried to modify an integration, I broke everything. |
What Amazon is telling you to do is for you to go and open the Amazon app to verify and prove that this login session is legitimately being done by you. So, you have to open the app on your phone and it should alert you to the fact that someone has tried to log in and you need to authorize that attempt. There's no way for AMP to automate that approval! If there were, then any scammer could do it and Amazon's protection methods would be pointless. |
Yes, of course....but when I try to login with AMP i don't get the notification to open the Amazon app for authentication approval...So, could AMP manage this authentication method in the future? |
Ok, I think I see the picture now. Your independent Amazon login session prompts you to open the app for authentication, which all works. But this never happens from AMP. I'm trying to rule out a browser's failure to remember that you already proved yourself (via cached cookies). |
Actually I ever used Chrome (from different devices). Anyway, yes it always prompt that type of approval. (Also if I delete the Amazon app from my devices🫣) |
Just tried with MS edge and same problem... |
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: