# Node-red-pubsub

**URL:** https://discourse.nodered.org/t/node-red-pubsub/37380
**Category:** General
**Created:** [12 December 2020 00:38 UTC](https://discourse.nodered.org/t/node-red-pubsub/37380 "2020-12-12T00:38:00Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![devi-vk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/devi-vk/32/33618_2.png) [@devi-vk](https://discourse.nodered.org/u/devi-vk)
#### Post date: [12 December 2020 00:38 UTC](https://discourse.nodered.org/t/node-red-pubsub/37380/1 "2020-12-12T00:38:00Z")

</div>

Hi,  
When I tried to connect my GCP pubsub to node-red pubsub node, it gives the error "Error: secretOrPrivateKey must have a value". The state of the node is connected. Please, someone, guide me on how to solve this error.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/f/df80f7708ba14ab188ed8efcfb31f81a819b734c.png)

Thanks in advance!

Regards,  
devivk

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [12 December 2020 00:47 UTC](https://discourse.nodered.org/t/node-red-pubsub/37380/2 "2020-12-12T00:47:18Z")

</div>

First off it would help if you gave the full name of the node you are using. For example node-red-contrib-xxxxx Or node-red-node-xxxxx

Without that, I’d just be guessing. Also what is GCP pubsub? While others might know the term, I for one don’t. Remember you are the only one that knows your setup. I always read my question back thinking “if I was reading this and didn’t know the setup, would what I’ve asked make any sense?”

---

<div class="post-metadata">

### Author: ![devi-vk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/devi-vk/32/33618_2.png) [@devi-vk](https://discourse.nodered.org/u/devi-vk)
#### Post date: [12 December 2020 01:08 UTC](https://discourse.nodered.org/t/node-red-pubsub/37380/3 "2020-12-12T01:08:53Z")

</div>

Thanks for the prompt response!  
this is the node that I am using "node-red-contrib-google-cloud" in order to connect my node-red with my google cloud platform's pubsub service. I have added the JSON key from the service account and subscription for the topic.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/e/8e21b7ef5dd00bf3fe6aeaf349185ab633b066c4.png)

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [12 December 2020 10:25 UTC](https://discourse.nodered.org/t/node-red-pubsub/37380/4 "2020-12-12T10:25:15Z")

</div>

What version of Node-red and node.js are you running? (see the NR startup log)  
Any other messages showing up in the log?

If you are sure you have configured the node correctly, you should probaby open an issue on the node's [GitHub page](https://github.com/GoogleCloudPlatform/node-red-contrib-google-cloud/issues?q=is%3Aopen+is%3Aissue)

---

<div class="post-metadata">

### Author: ![devi-vk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/devi-vk/32/33618_2.png) [@devi-vk](https://discourse.nodered.org/u/devi-vk)
#### Post date: [14 December 2020 00:56 UTC](https://discourse.nodered.org/t/node-red-pubsub/37380/5 "2020-12-14T00:56:11Z")

</div>

Hi,  
Thanks for the response!

---

<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: [12 February 2021 00:56 UTC](https://discourse.nodered.org/t/node-red-pubsub/37380/6 "2021-02-12T00:56:13Z")

</div>

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