astronomer / astro-cli

CLI that makes it easy to create, test and deploy Airflow DAGs to Astronomer
https://www.astronomer.io
Other
350 stars 70 forks source link

`astro login` fails on callback "This site can’t provide a secure connection" #1649

Closed felipecaldas closed 4 months ago

felipecaldas commented 4 months ago

Hi,

I have Astro CLI installed in Windows 11 via winget. When attempting to run astro login, my a new Chrome tab opens, I then login with my Google account and the call back fails:

image

The callback URL is: https://localhost:12345/callback?code=

Any suggestions on how to fix this? Thank you

kushalmalani commented 4 months ago

What CLI version are you using? Do you get any error in your terminal/wherever you triggered astro login from?

felipecaldas commented 4 months ago

Hi,

I am on 1.26.0. When trying to update with winget, this is what I am getting:

PS C:\Projects\customers\anz-nz> astro version

A newer version of Astro CLI is available: 1.27.1 Please see https://docs.astronomer.io/astro/cli/install-cli#upgrade-the-cli for information on how to update the Astro CLI

If you don't want to see this message again run 'astro config set -g upgrade_message false'

Astro CLI Version: 1.26.0 PS C:\Projects\customers\anz-nz> winget install -e --id Astronomer.Astro Found an existing package already installed. Trying to upgrade the installed package... No available upgrade found. No newer package versions are available from the configured sources. PS C:\Projects\customers\anz-nz> astro version

A newer version of Astro CLI is available: 1.27.1 Please see https://docs.astronomer.io/astro/cli/install-cli#upgrade-the-cli for information on how to update the Astro CLI

If you don't want to see this message again run 'astro config set -g upgrade_message false'

Astro CLI Version: 1.26.0

Not sure why it's not upgrading using winget.

Next, I went to WSL/Ubuntu and was able to upgrade to 1.27.1. But then I get exactly the same error as reported here:

image

it then times out eventually

felipecaldas commented 4 months ago

I uninstalled astro with winget, then downloaded the .exe file - version 1.27.1 - and tried to login using that executable and got exactly same error again. Could this be a Chrome problem? I haven't tried with a different browser. It seems to be that the non-SSL callback URL is not getting accepted by Chrome

felipecaldas commented 4 months ago

I am happy to report that it has worked on Firefox - but not on Chrome and Vivaldi.