-
Notifications
You must be signed in to change notification settings - Fork 434
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
"No access, refresh token, API key or refresh handler callback is set." error on login #959
Comments
TL;DR; from my experience: make sure you have a deployment of the latest code version that is an API executable accessible by anyone [with Google Account] Detail:
|
I'm having what I think is a similar issue. I've created a $ clasp_config_auth=.clasprc.json npx clasp run myFunction
Running in dev mode.
Hello, world!
$ clasp_config_auth=.clasprc.json npx clasp versions
No access, refresh token, API key or refresh handler callback is set. My {
"token": {
"access_token": "removed",
"refresh_token": "removed",
"scope": "https://www.googleapis.com/auth/script.projects https://www.googleapis.com/auth/spreadsheets https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/script.container.ui https://www.googleapis.com/auth/script.deployments https://www.googleapis.com/auth/logging.read https://www.googleapis.com/auth/script.external_request https://www.googleapis.com/auth/script.webapp.deploy https://www.googleapis.com/auth/script.scriptapp https://www.googleapis.com/auth/service.management https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/drive.metadata.readonly https://www.googleapis.com/auth/script.send_mail",
"token_type": "Bearer",
"expiry_date": 1703733471612
},
"oauth2ClientSettings": {
"clientId": "removed",
"clientSecret": "removed",
"redirectUri": "http://localhost"
},
"isLocalCreds": true
} Any ideas what could be happening here? |
I followed this instruction.
https://github.com/google/clasp/blob/551000b55565d20fccc29673c5460022d42ee5cf/docs/run.md
When I
npx clasp login --creds ./creds.json
then click button in web, ornpx clasp push
, got error message but I have no idea why. I did some retries but no luck.Expected Behavior
The error should not occur.
Actual Behavior
then
Steps to Reproduce the Problem
npx clasp push
is working with global login.~/.clasprc.json
) then retry, but nothing worked.npx claps push
Specifications
v16.15.1
):clasp -v
): 2.4.2The text was updated successfully, but these errors were encountered: