Open raspberrypi9 opened 6 days ago
can you edit the credentials.json
it is missing a field The incoming JSON object does not contain a client_email field
did you provide all the info, and select the right type of credentials?
I did download the credentials but it doesn't have a client_email field. Should it? I tried hand editing it to add one but that didn't work I am doing OAuth client ID Also, I put the credentials file as credentials.json in the MMM-Google Calendar dir but it was looking for a token.js
We are currently using Node.js version 22.9.0 in our project, and we are encountering a deprecation warning related to the Punycode module alongside the MMM-GoogleCalendar: Error loading credentials Error: ENOENT: no such file or directory, open '~/MagicMirror/modules/MMM-GoogleCalendar/token.json'.
Could you please provide guidance on how to resolve or address this issue? Should we replace the Punycode module with an alternative, or are there any specific updates or configurations we should apply to avoid this warning?
Looking forward to your advice.
Thank you.
I generated an Oauth client ID in the Google interface and placed it in the file credentials.json in the MMM-GoogleCalendar directory. When I run: node authorize.js, it says:
MMM-GoogleCalendar: Error loading credentials Error: ENOENT: no such file or directory, open '/home/mjw/MagicMirror/modules/MMM-GoogleCalendar/token.json'
I tried cp credentials.json token.json but I got:
MMM-GoogleCalendar: Error loading credentials Error: The incoming JSON object does not contain a client_email field
I'm not sure what else to try now. If you would please offer some help, I would really appreciate it. Thank you.