google / clasp

🔗 Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.53k stars 423 forks source link

Issue with clasp login #945

Closed truchonh closed 1 year ago

truchonh commented 1 year ago

(Note: Non-breaking issues are likely not to be prioritized. Please consider a PR in addition to your issue)

Expected Behavior

'clasp login' should work

Actual Behavior

The redirection url towards the localhost server containing the auth code gives this error "ERR_SSL_PROTOCOL_ERROR" (in Chrome). I could eventually login, but I had to run the login command once, copy-paste the auth code, then edit the auth.js file with the hardcoded auth code in it and run the command again. The --no-localhost option is deprecated now, so I cannot rely on it to login once my session expires.

Steps to Reproduce the Problem

  1. delete .clasp.json
  2. run 'clasp login'

Specifications

truchonh commented 1 year ago

I cleared the domain security policies for localhost in chrome and it worked !