alexa_media_player
alexa_media_player copied to clipboard
Authentication failure / Internal Server Error 500
Describe the bug My integration has been working perfectly for a long time but today I upgrade and it has started failing initial just with and error message saying it "failed" (sorry that is vague as I have lost that now).
So I decided to delete the integration and start again following this: https://github.com/alandtse/alexa_media_player/wiki/Configuration#built-in-2fa-app
The OTA auth seems to work but then I get a web page where I have to enter a CAPTCHA - no matter what I try I get "500 Internal Server Error Server got itself in trouble" (sometimes this appears before I even get time to enter the CAPTCHA.
To Reproduce
Follow the Built-in 2FA App instructions.
Expected behavior
Integration is setup.
Screenshots
System details
- Home-assistant (version): 2024.2.5
- alexa_media (version from
const.py
or HA startup): 4.9.2 - alexapy (version from
pip show alexapy
or HA startup): - Amazon 2FA is enabled (y/n). Yes<!---We will not debug login issues if unanswered--->:
- Amazon domain: amazon.co.uk
Logs Please provide logs.
Additional context
Will provide more logs if required but first I wanted to know if anyone else is having issues? When following the instructions should the 2FA key include the spaces or not (I have tried both)? Is there any alternative to the CAPTCHA - I really struggle to read these!
I think I have it working now - I missunderstood the user/pwd the website was looking for. As it was on my HA instance I used the user/pwd but it clearly say the Amazon one!
Leave this here in case it helps anyone else.
I'm having problems since yesterday with the authentication for the domain "amazon.es" as well. I receive many "Internal Server Error 500" messages after several attempts, sometimes it gives the captcha option, other times the login option and other times the verification with code, but in the end it always ends up giving the error "500" or "401 Unauthorized". I have deleted the integration, installed again, cleared cache, tried other browsers and it always ends up giving an error. I'm starting to wonder if the problem could come from another source, such as the attack on the submarine cables that occurred in the Red Sea, because I'm also having communication/lag problems in other integrations.
I tried it a while ago after updating HAOS and it was authenticated the first time
Does not work for me at all. Tried to just install it with 2024.3 but always run into this>
Same here (amazon.fr)
Me too. I have passkeys enabled on my account. Not sure if that's it?
EDIT: aaaaand I'm an idiot. I thought I had 2FA turned on because it always sends a 2FA check via email, but I had to explicitly turn on 2FA in my account and now this integration works perfectly...
Same here (amazon.it)
I don't know what the problem could be, in my case I thought it was due to the servers, because that day many had failed (Facebook, Instagram, etc.) and always doing the same steps I had that error for more than 15 attempts, the next day I did it. I tried again without doing anything different and it worked the first time🤷🤷
Résolution : activate 2FA on Amazon account
That wasn't the issue, it was already enabled.
I answered for my comment
Sorry missed that.
Same here. (amazon.de)
Core: 2024.3.1 Supervisor : 2024.03.0 Operating System: 12.1 Frontend: 20240307.0
Alexa Media Player - v4.9.2 Amazon 2FA is enabled (y/n). Yes Amazon domain: amazon.de
Same problem :(
Core: 2024.3.2 Supervisor : 2024.03.0 Operating System: 12.1 Frontend: 20240307.0
Alexa Media Player - v4.9.2 Amazon 2FA is enabled (y/n). Yes Amazon domain: amazon.es
Maybe try in amazon.com?
No.Not working
same here
Same here since update. 2fa was working before. Now each reauth or uninstall and readd will end in error 500.
Dupe of #2138
Dear all had this issues and tried almost everything mentioned in different forums.
In the end I check for
pip show alexapy
and apparently it was not installed hence I ran pip install alexapy
.
Moreover I had created the 2FA in amazon with OTP via application as preferred and mobile as second.
I tried to register the integration via
- Nabucase URL
- Cloudflare domain
- local IP
via PC !!! Nothing worked. Always captcha that returned the 500.
.Ultimately I used my mobile phone where I had my OTP google authentificater. .Logged into my local 192.168....:8123 home assistant URL .started the alexa media plugin integration .entered my amazon login details and used the LAN URL .amazon popped up with..... OTP request instead of captcha. .entered OTP from google auth.
BAM. worked flawlessly. Hope this works for you as well.