# Firebase can't send simply msg.payload

**URL:** <https://discourse.nodered.org/t/firebase-cant-send-simply-msg-payload/76316>\
**Category:** General\
**Created:** [8 March 2023 17:36 UTC](https://discourse.nodered.org/t/firebase-cant-send-simply-msg-payload/76316 "2023-03-08T17:36:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![pepebiskup1](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@pepebiskup1](https://discourse.nodered.org/u/pepebiskup1)\
**Post date:** [8 March 2023 17:36 UTC](https://discourse.nodered.org/t/firebase-cant-send-simply-msg-payload/76316/1 "2023-03-08T17:36:36Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/b/2b772b3f1bbf6dc889c2b196d1101a66cfb82da8.png)

Hello. I'm trying to send a simple msg. payload but it's not working. What should I write in the data field?  
When I will write just the number it can be sent and it's working.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [8 March 2023 18:10 UTC](https://discourse.nodered.org/t/firebase-cant-send-simply-msg-payload/76316/2 "2023-03-08T18:10:43Z")

</div>

Welcome to the forum @pepebiskup1

Which Firebase node are you using? node-red-contrib-???

---

<div class="post-metadata">

**Author:** ![pepebiskup1](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@pepebiskup1](https://discourse.nodered.org/u/pepebiskup1)\
**Post date:** [8 March 2023 18:15 UTC](https://discourse.nodered.org/t/firebase-cant-send-simply-msg-payload/76316/3 "2023-03-08T18:15:41Z")

</div>

I''m using node-red-contrib-firebase-data .

When I was trying to use before node-red-contrib-firebase ( on Windows ) it's disconnecting node-red server( there is some issue i belive with that node on windows ).

---

<div class="post-metadata">

**Author:** ![pepebiskup1](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@pepebiskup1](https://discourse.nodered.org/u/pepebiskup1)\
**Post date:** [8 March 2023 19:58 UTC](https://discourse.nodered.org/t/firebase-cant-send-simply-msg-payload/76316/4 "2023-03-08T19:58:28Z")

</div>

So I'm unable to send value to a database in this contrib .

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [8 March 2023 20:40 UTC](https://discourse.nodered.org/t/firebase-cant-send-simply-msg-payload/76316/5 "2023-03-08T20:40:12Z")

</div>

> [@pepebiskup1](#):
>
> node-red-contrib-firebase-data

Whenever I am going to try a contrib node I check for issues on [node's github page](https://github.com/enebular/node-red-contrib-firebase-data/issues).

The fact that there are a number of unaddressed issues there suggests that the node is no longer supported which is not a good start.

Have you checked all the firebase nodes to see if there is one that appears to be currently active?

If you want to continue with this node then the first thing I would do is check to see if there is any output from the node when you send it some data. The examples show the data filled in in the dialog. Presumably you can pass it in, but there is no indication of how to do it.

---

<div class="post-metadata">

**Author:** ![pepebiskup1](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@pepebiskup1](https://discourse.nodered.org/u/pepebiskup1)\
**Post date:** [9 March 2023 07:26 UTC](https://discourse.nodered.org/t/firebase-cant-send-simply-msg-payload/76316/6 "2023-03-09T07:26:02Z")

</div>

Yes. This node is working. When i put some data in data field for example number i can send it to firebase however I can't put payload.

What I'm trying to do is to put random numbers every 10 sec but here is no option to send values.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 March 2023 07:43 UTC](https://discourse.nodered.org/t/firebase-cant-send-simply-msg-payload/76316/7 "2023-03-09T07:43:00Z")

</div>

Looking at the [source code,](https://github.com/enebular/node-red-contrib-firebase-data/blob/830be5d5cb5f66c86a5a5c1d07c2b50c42594551/source/addFirebase.js#L73) you are supposed to send objects or JSON in payload (not simple numbers)

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [9 March 2023 08:02 UTC](https://discourse.nodered.org/t/firebase-cant-send-simply-msg-payload/76316/8 "2023-03-09T08:02:19Z")

</div>

Hi,

The `Set` method can send a number.  
If you want, I have another [node](https://flows.nodered.org/node/@gogovega/node-red-contrib-firebase-realtime-database) for you 😁

---

<div class="post-metadata">

**Author:** ![pepebiskup1](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@pepebiskup1](https://discourse.nodered.org/u/pepebiskup1)\
**Post date:** [9 March 2023 10:29 UTC](https://discourse.nodered.org/t/firebase-cant-send-simply-msg-payload/76316/9 "2023-03-09T10:29:15Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/0/60e708578630a81f4c3434dfab35609edad37a3e.png)  
Thank you. I had to convert this for json before. Now everything is working.  
Best Regards.

---

<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:** [8 May 2023 10:30 UTC](https://discourse.nodered.org/t/firebase-cant-send-simply-msg-payload/76316/10 "2023-05-08T10:30:00Z")

</div>

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