# Stuck with node for reading out Google calendar

**URL:** <https://discourse.nodered.org/t/stuck-with-node-for-reading-out-google-calendar/25015>\
**Category:** General\
**Created:** [17 April 2020 12:28 UTC](https://discourse.nodered.org/t/stuck-with-node-for-reading-out-google-calendar/25015 "2020-04-17T12:28:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikew5673](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@mikew5673](https://discourse.nodered.org/u/mikew5673)\
**Post date:** [17 April 2020 12:28 UTC](https://discourse.nodered.org/t/stuck-with-node-for-reading-out-google-calendar/25015/1 "2020-04-17T12:28:17Z")

</div>

I have created a nice workflow for an interactive family calendar with Neopixels. In 2018 I have used node-red-node-google. After several updates, the authentication with Google does not work any more.  
When using the callback authentication with the URL [http://node-red.example.com:1880/google-credentials/auth/callback](http://node-red.example.com:1880/google-credentials/auth/callback) (which is resolved in hosts-Files correctly) the following error message is shown:

```auto
> TypeError: Cannot read property 'split' of undefined
> at /home/pi/.node-red/node_modules/node-red-contrib-google-calendar/source/google.js:211:37
> at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
> at next (/usr/lib/node_modules/node-red/node_modules/express/lib/router/route.js:137:13)
> at Route.dispatch (/usr/lib/node_modules/node-red/node_modules/express/lib/router/route.js:112:3)
> at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
> at /usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:281:22
> at Function.process_params (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:335:12)
> at next (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:275:10)
> at expressInit (/usr/lib/node_modules/node-red/node_modules/express/lib/middleware/init.js:40:5)
> at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
> at trim_prefix (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:317:13)
> at /usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:284:7
> at Function.process_params (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:335:12)
> at next (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:275:10)
    at query (/usr/lib/node_modules/node-red/node_modules/express/lib/middleware/query.js:45:5)
    at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)

```

Now I am looking for a solution to get the calendar node back to work.  
Has anybody a complete how-to use a calendar node and to do proper authentication?

---

<div class="post-metadata">

**Author:** ![geertvercamer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/geertvercamer/32/25650_2.png) [@geertvercamer](https://discourse.nodered.org/u/geertvercamer)\
**Post date:** [5 June 2020 07:46 UTC](https://discourse.nodered.org/t/stuck-with-node-for-reading-out-google-calendar/25015/2 "2020-06-05T07:46:05Z")

</div>

same here. I just replied to keep the issue from closing

---

<div class="post-metadata">

**Author:** ![geertvercamer](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/geertvercamer/32/25650_2.png) [@geertvercamer](https://discourse.nodered.org/u/geertvercamer)\
**Post date:** [5 June 2020 08:44 UTC](https://discourse.nodered.org/t/stuck-with-node-for-reading-out-google-calendar/25015/3 "2020-06-05T08:44:26Z")

</div>

looked further into this...

I made a new Google Project, added Calendar API. I clicked 'credentials' in the left menu, added OAuth client where I added [http://localhost:1880/google-credentials/auth/callback](http://localhost:1880/google-credentials/auth/callback) in the Authorised redirect URIs.  
Use the client ID and secret in a new node red google and you're all settled

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 August 2020 08:44 UTC](https://discourse.nodered.org/t/stuck-with-node-for-reading-out-google-calendar/25015/4 "2020-08-04T08:44:29Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
