Skip to content
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

An error occurred accessing AlexaAPI: LoginError occurred. Arguments: ('Unauthorized',) #2429

Closed
micium opened this issue Aug 8, 2024 · 9 comments

Comments

@micium
Copy link

micium commented Aug 8, 2024

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

all amazon devices are available but I can't use them

To Reproduce

updated to 2024.8.0 and fix manifest.json with "alexapy==1.28.2"

Expected behavior

notify (TTS) to alexa devices but not working with errors

Screenshots

Registratore: alexapy.helpers
Fonte: runner.py:190
Prima occorrenza: 12:53:26 (3 occorrenze)
Ultima registrazione: 12:53:26

alexaapi.run_behavior((<alexapy.alexaapi.AlexaAPI object at 0x7f69d69190>, {'@type': 'com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode', 'type': 'Alexa.Speak', 'operationPayload': {'deviceType': 'A3VRME03NAXFUB', 'deviceSerialNumber': 'G316', 'locale': 'it-it', 'customerId': 'AG0W', 'textToSpeak': 'ciao', 'target': {'customerId': 'AG0W', 'devices': [{'deviceSerialNumber': 'G316', 'deviceTypeId': 'A3VRME03NAXFUB'}]}, 'skillId': 'amzn1.ask.1p.saysomething'}}), {'queue_delay': 1.5}): An error occurred accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments: ('Unauthorized',)
alexaapi.send_sequence((<alexapy.alexaapi.AlexaAPI object at 0x7f69d69190>, 'Alexa.Speak'), {'customer_id': 'A292ZASRY7G0W', 'textToSpeak': 'ciao', 'target': {'customerId': 'AG0W', 'devices': [{'deviceSerialNumber': 'G*********316', 'deviceTypeId': 'A3VRME03NAXFUB'}]}, 'skillId': 'amzn1.ask.1p.saysomething', 'queue_delay': 1.5}): An error occurred accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments: ('Unauthorized',)
alexaapi.send_tts((<alexapy.alexaapi.AlexaAPI object at 0x7f69d69190>, 'ciao'), {'customer_id': 'A292ZASRY7G0W', 'queue_delay': 1.5}): An error occurred accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments: ('Unauthorized',)

System details

  • Home-assistant (version): 2024.8.0
  • alexa_media (version from const.py or HA startup): v4.12.6 + fix manifest.json with "requirements": ["alexapy>=1.28.2", "packaging>=20.3", "wrapt>=1.14.0"],
  • alexapy (version from pip show alexapy or HA startup): 1.28.2
  • Amazon 2FA is enabled (y/n). <!---We will not debug login issues if unanswered--->: YES

Logs
Please provide logs.

Additional context

@chrisvblemos
Copy link
Contributor

Can you try again with the new release 4.12.7?

@micium
Copy link
Author

micium commented Aug 8, 2024

same problem also with new release 4.12.7

I did a roolback to 2024.7.4 and AMP 4.12.7 and all work fine

@r0bb10
Copy link

r0bb10 commented Aug 9, 2024

Can you try again with the new release 4.12.7?

works again for me on 4.12.7!

@cibernox
Copy link

cibernox commented Aug 9, 2024

Same here. Updating to the latest release fixed it.

@micium
Copy link
Author

micium commented Aug 9, 2024

I did various tests based also on the other open issues, unfortunately the problem seemed solved after reauthentication (deleted integration and reconfigured from scratch) but after about a couple of hours it reappeared.
My configuration was HA 2024.8.0, AMP 4.12.7, I'm writing this because I did the rool back to HA 2024.7.4, AMP 4.12.7 again and everything works fine

@MarQua
Copy link

MarQua commented Aug 19, 2024

I have the same issue with HA 2024.8.2 and AMP 4.12.9.

@danielbrunt57 danielbrunt57 changed the title An error occurred accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments: ('Unauthorized',) An error occurred accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments: ('Unauthorized',) Aug 20, 2024
@danielbrunt57 danielbrunt57 changed the title An error occurred accessing AlexaAPI: An exception of type AlexapyLoginError occurred. Arguments: ('Unauthorized',) An error occurred accessing AlexaAPI: LoginError occurred. Arguments: ('Unauthorized',) Aug 20, 2024
@alandtse
Copy link
Owner

@danielbrunt57 there are many dupe issues to track with the same root cause LoginError occurred. Arguments: ('Unauthorized',). It makes it harder for both users and devs to actually track the issue. I'd suggest that you mark them as dupes of each other and then choose one (with the best info) as the main one you update while closing all others.

Also, when you submit a PR, you can identify which issues it'll close so it auto cleans up when its merged but also lets people know there's a PR that may close the issue.

@danielbrunt57
Copy link
Collaborator

@danielbrunt57 there are many dupe issues to track with the same root cause LoginError occurred. Arguments: ('Unauthorized',). It makes it harder for both users and devs to actually track the issue.

Yes, I'm aware of that and realize it's kinda out of hand, hence why I went through them and edited the title with the initial, most relevant error message to make the next step (your recommendation) easier.

I'd suggest that you mark them as dupes of each other and then choose one (with the best info) as the main one you update while closing all others.

I will, when my spare time permits.
I have to get my house ready to list as early in September as I can manage and I have a LOT to do. I'm currently in a financial crisis...

Also, when you submit a PR, you can identify which issues it'll close so it auto cleans up when its merged but also lets people know there's a PR that may close the issue.

I try!

@pilot1981
Copy link

any news? I have the same problem: HA 2024.10.1 Alexa Media Player v4.13.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants