# Custom node not working after full deploy

**URL:** https://discourse.nodered.org/t/custom-node-not-working-after-full-deploy/34243
**Category:** Developing Nodes
**Created:** [14 October 2020 13:35 UTC](https://discourse.nodered.org/t/custom-node-not-working-after-full-deploy/34243 "2020-10-14T13:35:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![GvB](https://avatars.discourse-cdn.com/v4/letter/g/ecae2f/32.png) [@GvB](https://discourse.nodered.org/u/GvB)
#### Post date: [14 October 2020 13:35 UTC](https://discourse.nodered.org/t/custom-node-not-working-after-full-deploy/34243/1 "2020-10-14T13:35:52Z")

</div>

Hi all,

I just started working on creating my own nodes in node-red.  
I created my own implementation of the http-in node.

The node I created listens to a post request coming from a client.  
In my callback I use the method `this.send(message)`.

Whenever I start node-red from my powershell console everything works perfect.  
The post request arrives in my node and I see the logging in de debug console:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/7/7706dff7d7bf949a28b3d2f2bbb44283474d594b.png)

Whenever I change something in my flow (say I add an extra node) and click on deploy my node stops working.

The request will still arrive in my custom node and the callback of this node. By putting some basic logging inside my code I could follow it all the way to the `this.send(message)`  
The problem is that my flow never arrives in the debug node.

To make it work I have to stop node-red in the powershell console and start it again.

I've messed around with the deploy of only modified flows and modified nodes and these seem to be working fine. (my request would keep arriving in the debug node). Only a full deploy breaks my node.

Things I have tried to fix it

- put the this.send inside `this.on("input")` and call the `this.receive` instead .
- put logging on `trace` to see if there is extra information available (there wasn't)

Is there anything a full deploy does that could break my node or did I miss anything?

I am using Node.js v12.18.4. and Node-RED version: v1.1.3

Thanks in advance!

---

<div class="post-metadata">

### Author: ![Kib](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kib/32/27493_2.png) [@Kib](https://discourse.nodered.org/u/Kib)
#### Post date: [16 October 2020 12:46 UTC](https://discourse.nodered.org/t/custom-node-not-working-after-full-deploy/34243/2 "2020-10-16T12:46:08Z")

</div>

Hey @GvB. Not quite apparent what is the reason, can you post the code snippets ?

---

<div class="post-metadata">

### Author: ![GvB](https://avatars.discourse-cdn.com/v4/letter/g/ecae2f/32.png) [@GvB](https://discourse.nodered.org/u/GvB)
#### Post date: [16 October 2020 14:24 UTC](https://discourse.nodered.org/t/custom-node-not-working-after-full-deploy/34243/3 "2020-10-16T14:24:46Z")

</div>

Hi @Kib,

I've written my code in typescript which gets compiled to javascript.  
The files are quite big so i've uploaded them as 2 txt files.

GvB

[javascript.txt](https://discourse.nodered.org/uploads/short-url/jrGBUIkwUnJkM48BuepO9rIQree.txt) (10.3 KB) [typescript.txt](https://discourse.nodered.org/uploads/short-url/wNdV95YWgsyzJ31ydTpYHfQ37xD.txt) (7.5 KB)

---

<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: [15 December 2020 14:24 UTC](https://discourse.nodered.org/t/custom-node-not-working-after-full-deploy/34243/4 "2020-12-15T14:24:49Z")

</div>

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