Read the statement by Michael Teeuw here.
Google Tasks 'client_secret' of 'this.credentials.installed' as it is undefined.
-
@torafadora change the app type, and download a new credentials.json
look inside, its text. if it has an installed key then its the correct type
-
@sdetweil
I made a new desktop application download the credentials.json ran the authenticate.mjs to generate the token.json file. But I am getting the same error as before.
[ERROR] [MMM-GoogleTasks] - Error retrieving Google Tasks: TypeError: Cannot destructure property ‘client_secret’ of ‘this.credentials.installed’ as it is undefined.here is the client_secret.json-
{ "installed": { "client_id": "x", "project_id": "xxx", "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": "xxx", "redirect_uris": ["http://localhost"] } }[ { "account": "me", "token": { "access_token": "xxx", "refresh_token": "xxx", "scope": "https://www.googleapis.com/auth/tasks.readonly", "token_type": "Bearer", "refresh_token_expires_in": 604799, "expiry_date": 1740275388678 } } ] -
@torafadora which goggletasks are you using?
i dont find those config parms in jgauth
-
@sdetweil https://github.com/spydersoft-consulting/MMM-GoogleTasks
This is the project I am working from. I don’t understand what you are trying to say.
-
@sdetweil Don’t need to put this in but I have worked with the google console with another module I built from scratch for reading and automatically classifying emails and that works no problem. I also know that my credentials, token and client_secret are correct because I am able to get a json response from a URL.
-
@torafadora i was looking at
-
@sdetweil I got it working with that one, why can’t it work with the original, this one is too plain
-
@torafadora i dont know,
-
maybe change the paths to
‘modules/MMM-GoogleTasks/…filename’
as the module is executed w MagicMirror running in the MagicMirror folder
-
S sdetweil has marked this topic as solved on
