Skip to content
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

DOTFILE.RC.read() fails despite file bring created #738

Open
programmer24601 opened this issue Feb 17, 2020 · 0 comments
Open

DOTFILE.RC.read() fails despite file bring created #738

programmer24601 opened this issue Feb 17, 2020 · 0 comments

Comments

@programmer24601
Copy link

programmer24601 commented Feb 17, 2020

Expected Behavior

When logging in with custom credentials I am able to run clasp pull/push/run successfully.

Actual Behavior

When attempting to log in with custom credentials I receive:

Authorization successful.

Local credentials saved to: ./.clasprc.json.
Be sure to never commit this file! It's basically a password.
Could not read API credentials. Are you logged in globally?

The .clasprc.json file is created and contains what looks to be the correct content.

Steps to Reproduce the Problem

  1. Follow instructions here: https://github.com/google/clasp/blob/master/docs/run.md
  2. Add creds.json file to project of this structure:
    { "installed": { "client_id": "asdf.apps.googleusercontent.com", "project_id": "asdf", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_secret": "asdf", "redirect_uris": ["urn:ietf:wg:oauth:2.0:oob", "http://localhost"] } }
  3. Run clasp login --creds creds.json
  4. Authorize in browser.
  5. clasp login --status returns:

You are not logged in.

Please note that the regular method of logging in (clasp login) is successful.

Debugging shows that dotfile_1.DOTFILE.RC = {exists: ,read: ,write: ,delete: }

Specifications

  • Node version (node -v): v12.10.0
  • Version (clasp -v): 2.3.0
  • OS (Mac/Linux/Windows): Ubuntu 18.04.4 LTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants