-
Notifications
You must be signed in to change notification settings - Fork 291
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
Failed to login on amazon.com.au #1101
Comments
Update: I installed the web terminal in HA and ran pip3 install alexapy and it installs, however when I reboot the system it is no longer found. Edit: my bad, wasn't executing inside homeassistant docker container. |
Update: Rolling back to 3.4.1 works fine |
Can you please enable Advanced Debugging in the sign in screen and generate the logs? It's detecting you've made it to the final login page but when it tests the connection it's being told to relogin. Please also test the following in a browser. This is what it's doing behind the scenes:
|
Will post advanced debugging logs shortly. I just did step 1 above in a browser, both in-private and normal, and I get this
No login screen at all |
Are you doing .com or .com.au? I see that page at amazon.com.au/api/bootstrap. It should be .com. |
Same message on both .com and .com.au |
Can you please confirm you're using https? I switched to https://alexa.amazon.com.au/api/bootstrap and now I don't see the error. |
That works now, returns some JSON data with my name etc. I have the get and post logs from advanced debugging, are they safe to post here? |
I don't need the get/post pages. I do need the expanded log output though. Please do a scrub before you post on pastebin. You may need to truncate the cookie values but leave intact the names. Since you can login to the bootstrap site, please follow the steps and report back whether it works after using the signin link from your logs. |
Using the signin link from the log works, however it does ask me for a captcha as well as my OTP despite having 2FA enabled Advanced Debug log |
Sorry, use https://alexa.amazon.com/api/bootstrap. That is the site that has to work. |
Step 1 takes me to sign in page. Didn't sign in and went to step 2. |
@brywithawhy, following as I seem to be running into the same problem as you with my Australian account. 5 Steps above are successful for me but I'm still getting a failed login. "Login failed; check credentials" and "If credentials correct, please report these missing values: ['encryptedPasswordExpected']" at the end of my log. It used to work just fine until recently, though I could never get the built in 2FA to work. I've also tried rolling back a few versions to no avail. Currently on the latest v3.4.8 I'll post my own issue if you get it working with further help from @alandtse and I dont :) |
I'm not sure why your accounts have this issue. I'm able to login to amazon.com.au from two of my accounts (both US based however). I'll likely provide a legacy option so you can use the old method to login. However, you won't have access to the oauth benefits which means you'll have to relogin whenever Amazon decides to make you. |
I've rolled back to 3.4.1 and the 2fa key option works fine |
Try 3.4.1 as that has the old login method. The issues @brywithawhy is reporting only exist in 3.4.2 and above when I switched to the oauth token login the app uses. The five steps I asked about are what the component is doing in the background. The fact that step 5 shows another login is why it's failing. |
Thanks anyway for trying @alandtse |
Hi, similar issue, was able to successfully complete these steps. Yet integration still says login failed. Have tried both the amazon region domain as amazon.com and amazon.com.au |
I've got the same error "Alexa Media Player failed to login." since about a couple of weeks ago. It used to work fine until then. 2FA is enabled. |
Hello, can you indicate the source, where did you get the information on the constructor of this URL? In particular, I can't figure out where..signin comes from? .. Found either ..oauth2 .. in Cognito, or ..oa? .. in LWA. I also can't find info on ... client_id = device: 4145 ... Found either ..client_id = amzn1.application-oa2-client.b4d6 .. in LWA, or ..opn6m304vbavurl9 .. in Cognito. |
Describe the bug
Setting up the integration through the UI using either 2FA, 2FA App key, or cookies.txt I receive "Alexa Media Player failed to login."
To Reproduce
Steps to reproduce the behavior:
Expected behavior
For it to integrate as per previous versions
System details
const.py
or HA startup): 3.4.8pip show alexapy
or HA startup): not showing up in logs. 1.20.5Logs
Please provide logs. We'll be most likely asking for them anyway.
https://pastebin.com/B0gbBRH7
Additional context
I completely removed from hacs and deleted pickle files and reinstalled - same issue.
Have restarted 2x as per faq
The text was updated successfully, but these errors were encountered: