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

Unexpected "TypeError: Cannot destructure property 'client_id' of 'options.creds.installed' as it is undefined." #879

Closed
EmilyGraceSeville7cf opened this issue Oct 9, 2021 · 3 comments

Comments

@EmilyGraceSeville7cf
Copy link

EmilyGraceSeville7cf commented Oct 9, 2021

Expected Behavior

No error (if it is a bug).

Actual Behavior

TypeError: Cannot destructure property 'client_id' of 'options.creds.installed' as it is undefined. error thrown.

Steps to Reproduce the Problem

  1. Create simple script which requires no OAuth scopes (for instance simply prints some text in console).
  2. Change default GCP to standard one.
  3. Setup consent screen as you want (use external app type at first step).
  4. Create custom OAuth client ID and download it as creds.json.
  5. Place creds.json into clasp project directory and try run clasp login --creds creds.json.

Please consider this test repo for an example.

Specifications

  • Node version (node -v): v14.17.4
  • Version (clasp -v): 2.4.1
  • OS (Mac/Linux/Windows): Linux Mint 20.2 Cinnamon
@EmilyGraceSeville7cf
Copy link
Author

Please consider my Reddit topic about this problem.

@Darkade
Copy link

Darkade commented Mar 2, 2022

I'm having the same behavior

@sqrrrl
Copy link
Member

sqrrrl commented Mar 13, 2025

Closing as duplicate of #997

@sqrrrl sqrrrl closed this as completed Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants