alexa_media_player: Alexa authentication bug, url is wrong, Cannot load Integration

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 Unlike others, I’ll provide as much info as I possibly can. If you need something else, pls be very specific on how to get it for you.

The problem lies in the automated url generation for authorization ...ui.nabu.casa:0/auth/alexamedia... The :0 shouldn’t be there. If you remove it, you get a lot further, but it still won’t authenticate

To Reproduce

just try and add the Alexa Media Player

Expected behavior Add the integration

Authorize with a VALID url. Screenshots

961B2E10-4F02-4F9A-B6CB-290C24833FAE

System details

  • Home-assistant (version): 2023.5.0

  • alexa_media (version from const.py or HA startup): From HACS 4.6.2

  • alexapy (version from pip show alexapy or HA startup): There is no way to tell. Integration isn’t available on startup.

  • Amazon 2FA is enabled (y/n)yes

:

Logs no way to provide logs if you can’t even load the integration. Please provide logs.

Additional context

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 17 (2 by maintainers)

Most upvoted comments

SUCCESS. If I use a web browser (NOT the IOS ha app), AND I change the ha access URL to local from the default Nabucasa url, I’m able to authenticate and add the integration.

59836D6C-D4B2-41A0-85DA-B7F6ADA73046

again, I’m happy to test further to help isolate the bug. 2C89FE71-F965-4E38-97F5-D9FC73D0C707

4CA6DFB8-99AD-43C4-B846-34C42097BA5B