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

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

Open EmilyGraceSeville7cf opened 3 years ago

EmilyGraceSeville7cf commented 3 years ago

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

EmilyGraceSeville7cf commented 3 years ago

Please consider my Reddit topic about this problem.

Darkade commented 2 years ago

I'm having the same behavior