-
Notifications
You must be signed in to change notification settings - Fork 303
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 call to service configurator/configure . get #344
Comments
Potential fix in alexapy here. Need an advanced tester who has this problem to try it. Otherwise, I'll handle it as soon as Amazon unthrottles me. ;) |
I can be you advanced tester, let me know |
@gericho thanks. I'll need to get logs from trying to login to a non-US domain.
Hopefully it works successfully. If not, provide logs here or in a private gist. |
I cannot login, so I cannot pass step 1 (2.1.0 installed with HACS) came up a banner with: My configuration.yaml:
PS: the 6 digit code come into the email normally |
Thanks. Sorry, I shouldn't have said "and working" for step 1. Can you go ahead and replace alexapy? |
I tried but maybe is over my talents... I enabled logs as follow:
So the alexa_media directory:
and the alexa.py cloned from here
I get the same error as above, the 6 digits code comes into the email as before. Let me know where I can check the logs, thanks! |
One small change in your logger:
Your logs should be in the config directory under homeassistant.log. I'm at work so can't check specifically. The UI also has some logs in the Developer Tools section if you can't find the raw file. |
So the log is as follow:
and the home.assistant.log |
Thanks @gericho. Go ahead and restore your alexapy. I've been testing it tonight and that is probably not the solution. Trying a different angle now. |
Ok playing around more with this, it feels like only Workaround when I do the new release will be to disable 2FA to get the cookie and then reenable. |
Describe the bug
Configurator can fail in the login in situations where Amazon attempts to reset cookies to
-
and that is then submitted back to Amazon. Because the cookies are invalid, Amazon then redirects to a page that says to enable javascript. There is a form which the_process_page
function is pulling the actionget
. This is then submitted to and it fails because it's an invalid url.This appears to only happen for the
amazon.it
domain.To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
![image](https://user-images.githubusercontent.com/7086117/64314402-c37d6e00-cf63-11e9-8f2c-82f6f34e722c.png)
System details
const.py
or HA startup): 2.1.0pip show alexapy
or HA startup): 1.0.2Logs
Additional context
The root cause is the fact something is causing Amazon to invalidate the cookies in the login process. However, the code can probably be fixed to properly handle the page providing
get
so it restarts the login process.https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639/3123
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639/3141
The text was updated successfully, but these errors were encountered: