# This is another error I am seeing on a different machine

**URL:** <https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988>\
**Category:** General\
**Created:** [29 January 2021 07:53 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988 "2021-01-29T07:53:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [29 January 2021 07:53 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/1 "2021-01-29T07:53:16Z")

</div>

This is an interesting error I am seeing.

```auto
Where 89c38d55.164f48
What Key in object structure must evaluate to a string; got: undefined

```

Ok, the node mentioned:

 ![Screenshot from 2021-01-29 18-51-56](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/e/ae702cf995938b76253447a14b2259b3df46d015.png)

This is the node's code:

```auto
[{"id":"89c38d55.164f48","type":"inject","z":"bdc47459.27c378","name":"1","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":3210,"y":650,"wires":[["f9856a29.59773"]]}]

```

What is happening?

Sorry: Other information.

RasPi  
3B Stretch  
NR 1.2.6  
Dashboard 2.26.1

---

<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:** [29 January 2021 10:24 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/2 "2021-01-29T10:24:38Z")

</div>

I don't see the error in the debug pane in your screenshot. I would like to see the full error and anything else around it.

Edit: Restart node-red and refresh the browser page first

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [29 January 2021 22:30 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/4 "2021-01-29T22:30:47Z")

</div>

That's because it happens when I am not looking. (Kind of like that with errors. They seldom comply with requests to happen.)

---

<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:** [30 January 2021 09:21 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/5 "2021-01-30T09:21:50Z")

</div>

Run  
`zgrep -i --color=always -A 10 -B 10 "Key in object structure" /var/log/syslog* | awk -F: '{if(f!=$1)print "=========="; f=$1; print $0;}' `  
and it should find all recent occurrences or that error and print 10 syslog lines before and after each one to see if there are any other related messages. for me it prints those from the most recent syslog file first but I don't know if that is guaranteed.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [30 January 2021 19:43 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/6 "2021-01-30T19:43:09Z")

</div>

(From post 1, this is "BedPi" who has this error.

Today:

 ![Screenshot from 2021-01-31 06-42-01](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/5/e54ddd5b1507cd411259920001deaa890042fd5e.png)

---

<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:** [30 January 2021 20:09 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/7 "2021-01-30T20:09:12Z")

</div>

I am not convinced that what you think happened actually happened.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [30 January 2021 20:11 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/8 "2021-01-30T20:11:41Z")

</div>

Maybe.

But it is annoying to me that I am seeing these _errors_ that don't make sense to me.

---

<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:** [30 January 2021 20:52 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/9 "2021-01-30T20:52:47Z")

</div>

Where do the `Where` and `What` in the message you posted come from? Are these messages that you have detected in your flow and logged in some way?  
If so I would be concerned that there is some flaw in that logic. I find it difficult to see how an Inject node that isn't even configured to repeat or fire on startup could generate such an error. That is what the image you posted is showing isn't it? On top of that the error isn't even getting logged by the system apparently

Is there a timestamp with the error?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [30 January 2021 20:58 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/10 "2021-01-30T20:58:14Z")

</div>

(Thanks Colin for the replies.)

Yes, the message is being generated by an "error catching routine" I have written.  
(Do you want me to post that?)

That is written to a file and I extract that information from the file.

The message is slightly altered as it also needs to go over MQTT, so all important things need to be in the `payload` part of the message.

Though I have been wrong many times before the error routine does seem to be good as I do get other errors and when I drill down on the message, it is pointing to the correct node.

---

<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:** [30 January 2021 21:05 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/11 "2021-01-30T21:05:12Z")

</div>

You didn't answer the question:

> [@Colin](#):
>
> Is there a timestamp with the error?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [30 January 2021 21:06 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/12 "2021-01-30T21:06:08Z")

</div>

Sorry... Yes, the timestamp is generated with the error on capture. It is LOCAL time also.

---

<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:** [30 January 2021 21:07 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/13 "2021-01-30T21:07:06Z")

</div>

In that case what do you see in syslog at that time. If it is a real error from a node then I would expect a message there.  
Are you sure you are looking at the right pi?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [30 January 2021 21:10 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/14 "2021-01-30T21:10:30Z")

</div>

Good question.

Yes, I am. The **first** screen shot. `x.83`

You posted the command to search and you see the CLI/Terminal is `BedPi`. That is `x.83`.

The only thing is that maybe the error happened before I set the `save to log` and so wasn't _captured_ at that stage.

And so I am stuck at this point.

---

<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:** [30 January 2021 21:21 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/15 "2021-01-30T21:21:48Z")

</div>

> [@Trying\_to\_learn](#):
>
> The only thing is that maybe the error happened before I set the `save to log` and so wasn't _captured_ at that stage.

Do you mean you don't attach the timestamp when the error happens, but when you write it to the file?

Did you look in syslog at the time you think the error occurred?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [30 January 2021 21:23 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/16 "2021-01-30T21:23:44Z")

</div>

The time stamp is generated in the capture part of the flow after the `catch` node.  
Then written to the file as a _compound_ message.

---

<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:** [30 January 2021 21:24 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/17 "2021-01-30T21:24:32Z")

</div>

So, I ask again (third time), what do you see in syslog at the time of the error?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [30 January 2021 21:34 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/18 "2021-01-30T21:34:28Z")

</div>

I showed you what the syslog shows when I enter the command you posted.

It shows nothing.

No matches.

Hang on. Here is an extract of said syslog.  
(ok, sorry. First what I _created_ in my error log:

```auto
When 2021-01-16 08:07:34
Who ERROR_REPORT/BedPi/Schedule
Where 89c38d55.164f48
What Key in object structure must evaluate to a string; got: undefined

```

`/var/log/syslog` ends (this is weird.)  
I have `syslog` and `syslog.1` and they both end near the same time.

I'm confused.

Hang on.....

So the time/date is: 20201 01 16 @ 08:07:34

The syslog files **start** on `Jan 30`.

I don't know how to access .gz files from the terminal.

---

<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:** [30 January 2021 21:40 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/19 "2021-01-30T21:40:12Z")

</div>

syslog is the newest, then syslog.1, which probably isn't zipped. It probably doesn't end at the same time, well it does but the day before.  
But if the date is 16th Jan then the message is probably long gone. syslog usually rolls over once a day unless you are logging a lot in which case it will roll over more quickly. I think the default is the current one and seven previous so once it is a week old it is too late.

You will have to wait till it happens again.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [30 January 2021 21:42 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/20 "2021-01-30T21:42:19Z")

</div>

Looking at the others they don't go back that long. ☹

```auto
pi@BedPi:/var/log $ ll syslog*
-rw-r----- 1 root adm 26537 Jan 31 08:40 syslog
-rw-r----- 1 root adm 44034 Jan 31 06:25 syslog.1
-rw-r----- 1 root adm 4032 Jan 30 06:25 syslog.2.gz
-rw-r----- 1 root adm 3727 Jan 29 06:25 syslog.3.gz
-rw-r----- 1 root adm 3908 Jan 28 06:25 syslog.4.gz
-rw-r----- 1 root adm 3863 Jan 27 06:25 syslog.5.gz
-rw-r----- 1 root adm 3827 Jan 26 06:25 syslog.6.gz
-rw-r----- 1 root adm 3737 Jan 25 06:25 syslog.7.gz
pi@BedPi:/var/log $ 

```

Thanks.

---

<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:** [30 January 2021 21:54 UTC](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988/21 "2021-01-30T21:54:01Z")

</div>

I assume our posts crossed so you hadn't seen my previous one.  
That confirms your system is as I would expect, you get a week or thereabouts retained.  
It also explains why the command I suggested which searches the whole set didn't find anything.

[Next page](https://discourse.nodered.org/t/this-is-another-error-i-am-seeing-on-a-different-machine/39988.md?page=2)
