# Create and update Google Calendar events using node-red

**URL:** <https://discourse.nodered.org/t/create-and-update-google-calendar-events-using-node-red/4717>\
**Category:** General\
**Created:** [9 November 2018 10:26 UTC](https://discourse.nodered.org/t/create-and-update-google-calendar-events-using-node-red/4717 "2018-11-09T10:26:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukasli](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@lukasli](https://discourse.nodered.org/u/lukasli)\
**Post date:** [9 November 2018 10:26 UTC](https://discourse.nodered.org/t/create-and-update-google-calendar-events-using-node-red/4717/1 "2018-11-09T10:26:41Z")

</div>

Hello everyone,

I am currently trying to create and update events in the Google Calendar using the node-red-contrib-google node.  
Here is a Link to the Node: [https://flows.nodered.org/node/node-red-contrib-google](https://flows.nodered.org/node/node-red-contrib-google)

The goal is to create events and automatically update the color of those events.  
The flow I am using is shown in the attached screenshot.

I am always getting an the following error message from the node-red-contrib-google node:  
"TypeError: Cannot read property 'getAuth' of null"

I have some screenshots attached of my configuration of this node-red-contrib-google node, however I don't think this is were the problem is.

Does anyone have experience with this error message or knows how to solve this issue?  
Thank you very much in regard.

 ![screenshot](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/6/633a7fe612656d8aeadf38137eecdc1ba34d9c9e.png)

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [9 November 2018 10:37 UTC](https://discourse.nodered.org/t/create-and-update-google-calendar-events-using-node-red/4717/2 "2018-11-09T10:37:26Z")

</div>

You asked this yesterday. [Node-google update calendar event](https://discourse.nodered.org/t/node-google-update-calendar-event/4691?u=ukmoose)

Please don't create duplicate threads for the same issue, if you want to add more information please do it in your original thread.

---

<div class="post-metadata">

**Author:** ![lukasli](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@lukasli](https://discourse.nodered.org/u/lukasli)\
**Post date:** [9 November 2018 11:00 UTC](https://discourse.nodered.org/t/create-and-update-google-calendar-events-using-node-red/4717/3 "2018-11-09T11:00:26Z")

</div>

I'm sorry, I stopped working with the nodes I have used yesterday and tried doing it differently.  
I therefore assumed a new thread would be adequate.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [10 November 2018 00:33 UTC](https://discourse.nodered.org/t/create-and-update-google-calendar-events-using-node-red/4717/4 "2018-11-10T00:33:35Z")

</div>

Sorry, this appears to be a different issue and so should have a different thread?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [10 November 2018 00:33 UTC](https://discourse.nodered.org/t/create-and-update-google-calendar-events-using-node-red/4717/5 "2018-11-10T00:33:59Z")

</div>

Do you have 2FA turned on for your Google account?

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [10 November 2018 05:02 UTC](https://discourse.nodered.org/t/create-and-update-google-calendar-events-using-node-red/4717/6 "2018-11-10T05:02:45Z")

</div>

And if you don;t - you should !!!

You will probably find that being a "new" device to Google that you will need to generate a Device/Application password (sort of like an encrypted key that can be embedded)

Here is a link for how to do this

[https://support.google.com/accounts/answer/185833?hl=en](https://support.google.com/accounts/answer/185833?hl=en)

Craig

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [10 November 2018 05:12 UTC](https://discourse.nodered.org/t/create-and-update-google-calendar-events-using-node-red/4717/7 "2018-11-10T05:12:01Z")

</div>

I have just looked at the node you are using - it looks like it is focused on the Google API endpoints for their services (Cloud etc) rather than use within things such as Calendar, sheets, Docs and the like - are you sure it is the right node for the job ? I may be wrong but when i looked at the APIs (for instance for Sheets - there were very few available

Craig

---

<div class="post-metadata">

**Author:** ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Post date:** [10 November 2018 05:13 UTC](https://discourse.nodered.org/t/create-and-update-google-calendar-events-using-node-red/4717/8 "2018-11-10T05:13:38Z")

</div>

I would have thought this one would have been better ??

> **[node-red-node-google](https://flows.nodered.org/node/node-red-node-google)**
>
> A set of Node-RED nodes to access various Google services

Craig

---

<div class="post-metadata">

**Author:** ![tompeel](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tompeel/32/23176_2.png) [@tompeel](https://discourse.nodered.org/u/tompeel)\
**Post date:** [29 July 2020 15:26 UTC](https://discourse.nodered.org/t/create-and-update-google-calendar-events-using-node-red/4717/9 "2020-07-29T15:26:03Z")

</div>

Does this require a Gsuite account? i'm having some issues getting set up, and an error saying i'm using a private ip address and my app needs a redirect URI...  
I have the Oauth token and secret but i cant get nodered to press OK to input them
