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

199 views
Skip to first unread message

Emily Seville

unread,
Oct 9, 2021, 10:13:42 AM10/9/21
to Google Apps Script Community
Hello! I want to create continuous delivery for my test (and than a real one) apps script project. Now my CD looks like this. The problem is it fails with: TypeError: Cannot destructure property 'client_id' of 'options.creds.installed' as it is undefined. I don't know how to fix it. 


Clark Lind

unread,
Oct 10, 2021, 11:22:24 AM10/10/21
to Google Apps Script Community
I don't know if you have fixed this yet, but when I click on the scope you are requesting, I get an error message. It may be obsolete and causing the error: 

You are receiving this error either because your input OAuth2 scope name is invalid or it refers to a newer scope that is outside the domain of this legacy API.

This API was built at a time when the scope name format was not yet standardized. This is no longer the case and all valid scope names (both old and new) are catalogued at https://developers.google.com/identity/protocols/oauth2/scopes. Use that webpage to lookup (manually) the scope name associated with the API you are trying to call and use it to craft your OAuth2 request.

Emily Seville

unread,
Oct 11, 2021, 9:21:01 AM10/11/21
to Google Apps Script Community
No, the problem is not fixed now. And I don't know why it exists with scope. I've changed nothing relating to scope. Maybe default creds.json is wrong?
Reply all
Reply to author
Forward
0 new messages