Wow, guess that was seriously kaput

#1

After writing up some code in a function node and deploying that, all the dashboard (2.9.1) wanted to show was this:

weird huh?
admin is still running fine and there ar no errors in the log, just a bunch of INFO messages.
after upgrading to 2.9.4 ( and reinstalling a suddenly missing node package) things started working again..

0 Likes

#2

Soooo what did you put in your function node? And what does you flow look like? (export??)

0 Likes

#3

Function looked like this:

   var msg = {
    "payload":JSON.parse(msg.payload)
};

var retMsg = {
    "payload":{}
};

retMsg.payload.lat = msg.payload.lat;
retMsg.payload.lon = msg.payload.lon;
retMsg.payload.name = msg.payload.tid;
retMsg.payload.icon = "male";

if (msg.payload.inregions){
    retMsg.payload.locatie = "Is "+msg.payload.inregions[0];    
}

return retMsg;

The initial retMsg declaration was missing at the time of crashing so that might have been it.

0 Likes

#4

So does this mean things are working?

0 Likes

#5

Yep, but I have no idea if it was actually caused by this.

0 Likes