# The node that i created is' not working same at local and deployed environment

**URL:** <https://discourse.nodered.org/t/the-node-that-i-created-is-not-working-same-at-local-and-deployed-environment/68436>\
**Category:** Developing Nodes\
**Created:** [1 October 2022 07:56 UTC](https://discourse.nodered.org/t/the-node-that-i-created-is-not-working-same-at-local-and-deployed-environment/68436 "2022-10-01T07:56:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hero](https://avatars.discourse-cdn.com/v4/letter/h/e47774/32.png) [@hero](https://discourse.nodered.org/u/hero)\
**Post date:** [1 October 2022 07:56 UTC](https://discourse.nodered.org/t/the-node-that-i-created-is-not-working-same-at-local-and-deployed-environment/68436/1 "2022-10-01T07:56:17Z")

</div>

hello  
i'm creating object-detection-node and i checked its work well at local environment

so i moved node to deploy environment for check but the display for parameter setting of the node was different.... and that makes problem at working

is there someone who teachs me about the solution???

the error is that parameter Objects and Poses are undefined so, flow.context().get() method is not working

 ![cap3](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/6/d60033adcae0ccfba5837f941eee5c6425848999.png)  
 ![cap2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/0/702bbc21f603336b8b5817d08fca81a3d8dd56f3.png)  
 ![cap1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/0/c0b27ed0ccf5ac7b168fe0da73fc2d24f2d597cd.jpeg)

---

<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:** [1 October 2022 09:39 UTC](https://discourse.nodered.org/t/the-node-that-i-created-is-not-working-same-at-local-and-deployed-environment/68436/2 "2022-10-01T09:39:44Z")

</div>

> [@hero](#):
>
> so i moved node to deploy environment for check but the display for parameter setting of the node was different.... and that makes problem at working

did you copy the Source code of another node as a basis for your node? If yes, then it is likely you did not rename the node properly to make it unique to the original.

> [@hero](#):
>
> the error is that parameter Objects and Poses are undefined so, flow.context().get() method is not working

Rather than understand what is happening - my question is why are you using context in your custom node at all?

---

<div class="post-metadata">

**Author:** ![hero](https://avatars.discourse-cdn.com/v4/letter/h/e47774/32.png) [@hero](https://discourse.nodered.org/u/hero)\
**Post date:** [2 October 2022 02:50 UTC](https://discourse.nodered.org/t/the-node-that-i-created-is-not-working-same-at-local-and-deployed-environment/68436/3 "2022-10-02T02:50:49Z")

</div>

i tried a few way to indject flow variable into .JS file but all of them failed except flow.context().get()

---

<div class="post-metadata">

**Author:** ![hero](https://avatars.discourse-cdn.com/v4/letter/h/e47774/32.png) [@hero](https://discourse.nodered.org/u/hero)\
**Post date:** [2 October 2022 03:34 UTC](https://discourse.nodered.org/t/the-node-that-i-created-is-not-working-same-at-local-and-deployed-environment/68436/4 "2022-10-02T03:34:34Z")

</div>

> [@Steve-Mcl](#):
>
> did you copy the Source code of another node as a basis for your node? If yes, then it is likely you did not rename the node properly to make it unique to the original.

im not sure i understand well... um so you mean that there is probably one more node that has same name on server environment?

---

<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:** [1 December 2022 03:35 UTC](https://discourse.nodered.org/t/the-node-that-i-created-is-not-working-same-at-local-and-deployed-environment/68436/5 "2022-12-01T03:35:15Z")

</div>

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