alexa_media_player icon indicating copy to clipboard operation
alexa_media_player copied to clipboard

Authentication failure / Internal Server Error 500

Open nsleigh opened this issue 11 months ago • 2 comments

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!

nsleigh avatar Mar 02 '24 15:03 nsleigh

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.

nsleigh avatar Mar 02 '24 15:03 nsleigh

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.

pollinolas avatar Mar 06 '24 12:03 pollinolas

I tried it a while ago after updating HAOS and it was authenticated the first time

pollinolas avatar Mar 07 '24 02:03 pollinolas

Does not work for me at all. Tried to just install it with 2024.3 but always run into this> image

Kefut avatar Mar 09 '24 13:03 Kefut

Same here (amazon.fr)

multinet33 avatar Mar 09 '24 19:03 multinet33

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...

TheLinx79 avatar Mar 10 '24 10:03 TheLinx79

Same here (amazon.it)

xPudda avatar Mar 10 '24 14:03 xPudda

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🤷🤷

pollinolas avatar Mar 10 '24 15:03 pollinolas

Résolution : activate 2FA on Amazon account

multinet33 avatar Mar 21 '24 22:03 multinet33

That wasn't the issue, it was already enabled.

nsleigh avatar Mar 21 '24 22:03 nsleigh

I answered for my comment

multinet33 avatar Mar 21 '24 22:03 multinet33

Sorry missed that.

nsleigh avatar Mar 21 '24 22:03 nsleigh

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

zer0point avatar Mar 22 '24 07:03 zer0point

Same problem :(

miguepollo avatar Mar 22 '24 17:03 miguepollo

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

miguepollo avatar Mar 22 '24 17:03 miguepollo

Maybe try in amazon.com?

miguepollo avatar Mar 22 '24 17:03 miguepollo

No.Not working

miguepollo avatar Mar 22 '24 17:03 miguepollo

same here

quantumicrowave avatar Mar 22 '24 18:03 quantumicrowave

Same here since update. 2fa was working before. Now each reauth or uninstall and readd will end in error 500.

DanielMisch avatar Mar 23 '24 11:03 DanielMisch

Dupe of #2138

alandtse avatar Mar 23 '24 18:03 alandtse

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.

atzetot avatar Apr 22 '24 14:04 atzetot