# Same subflow, different happening on different machines

**URL:** <https://discourse.nodered.org/t/same-subflow-different-happening-on-different-machines/85140>\
**Category:** General\
**Created:** [2 February 2024 06:40 UTC](https://discourse.nodered.org/t/same-subflow-different-happening-on-different-machines/85140 "2024-02-02T06:40:44Z")\
**Posts on this page:** 1\
**Showing post:** 38

<div class="post-metadata">

**Author:** ![shrickus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shrickus/32/517_2.png) [@shrickus](https://discourse.nodered.org/u/shrickus)\
**Post date:** [5 February 2024 01:04 UTC](https://discourse.nodered.org/t/same-subflow-different-happening-on-different-machines/85140/38 "2024-02-05T01:04:14Z")

</div>

Interesting -- it looks like this same issue came up in May of '21

> [@"TypeError: Cannot read property 'startsWith' of undefined"](https://discourse.nodered.org/t/typeerror-cannot-read-property-startswith-of-undefined/46212):
>
> I have a funtion node with many functions in it. On one function I get the following error message: "TypeError: Cannot read property 'startsWith' of undefined" What causes this message. Any help appreciated

Nick and Steve added some code to ensure that context keys are valid strings before doing a lookup, but I suspect calling `$env(undefined)` from within a jsonata expression is somehow bypassing those checks.

---

_[View the full topic](https://discourse.nodered.org/t/same-subflow-different-happening-on-different-machines/85140)._
