google / clasp

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

Clasp login fails: "Error retrieving access token..." #912

Open maulikpipaliya opened 2 years ago

maulikpipaliya commented 2 years ago

Expected Behavior

Login is expected to be functional via browser.

Actual Behavior

After logging in from the browser, it's not able to get the access token and produces the below error

Error: The `onCancel` handler was attached after the promise settled.
    at onCancel (/usr/local/lib/node_modules/@google/clasp/node_modules/p-cancelable/index.js:48:12)
    at makeRequest (/usr/local/lib/node_modules/@google/clasp/node_modules/got/dist/source/as-promise/index.js:38:13)
    at Request.<anonymous> (/usr/local/lib/node_modules/@google/clasp/node_modules/got/dist/source/as-promise/index.js:143:17)
    at Object.onceWrapper (node:events:510:26)
    at Request.emit (node:events:390:28)
    at Timeout.retry (/usr/local/lib/node_modules/@google/clasp/node_modules/got/dist/source/core/index.js:1270:30)
    at Timeout.retry (/usr/local/lib/node_modules/@google/clasp/node_modules/wtfnode/index.js:197:27)
    at listOnTimeout (node:internal/timers:557:17)
    at processTimers (node:internal/timers:500:7)

Specifications

kenkku commented 2 years ago

I'm experiencing the same, #909