Callback execution error: SyntaxError: Unexpected number

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
LAN-Opfer
Posts: 98
Joined: 03 Oct 2014 13:23

Callback execution error: SyntaxError: Unexpected number

Post by LAN-Opfer »

...I found an error in my log and want to correct it. But I Need some help to do that:
  • [2015-03-08 21:03:09.048] [D] [zway] SendData Response with callback 0x01 received: received by recipient
    [2015-03-08 21:03:09.048] [D] [zway] SETDATA devices.9.data.lastSend = 2515 (0x000009d3)
    [2015-03-08 21:03:09.048] [D] [zway] Job 0x13 (Wakeup Sleep): success
    [2015-03-08 21:03:09.048] [D] [zway] SETDATA devices.9.data.isAwake = False
    [2015-03-08 21:03:09.048] [D] [zway] Sending the queue for node 9 into sleep
    [2015-03-08 21:03:09.048] [zway] Removing job: Wakeup Sleep
    [2015-03-08 21:03:10.704] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:11.111] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:12.023] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:13.021] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:14.027] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:15.042] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:16.045] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:17.051] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:18.053] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:19.062] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:20.061] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:21.074] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:22.077] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:23.085] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:24.083] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:25.090] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:26.095] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:27.098] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:28.103] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:29.114] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:29.273] [D] [zway] Job 0x13: deleted from queue
    [2015-03-08 21:03:30.121] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:31.126] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:32.127] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:33.144] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:34.151] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:35.170] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:36.180] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:37.197] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:38.200] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:39.213] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)
    [2015-03-08 21:03:40.233] [E] [core] Callback execution error: SyntaxError: Unexpected number
    at CodeDevice.update (automation/modules/CodeDevice/index.js:125:40)
    at Function.<anonymous> (automation/modules/CodeDevice/index.js:101:18)


I think, the error is not caused by the module index.js - But how find the reason for it?

Uwe
Z-Way v2.0.1-rc18 on Raspberry Pi
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Callback execution error: SyntaxError: Unexpected number

Post by pofs »

It seems you have some JS error in your getter code.
LAN-Opfer
Posts: 98
Joined: 03 Oct 2014 13:23

Re: Callback execution error: SyntaxError: Unexpected number

Post by LAN-Opfer »

I also suspect - but how do I find the faulty module?
Z-Way v2.0.1-rc18 on Raspberry Pi
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Callback execution error: SyntaxError: Unexpected number

Post by pofs »

Do you have a lot of CodeDevices? Just check each of them.
LAN-Opfer
Posts: 98
Joined: 03 Oct 2014 13:23

Re: Callback execution error: SyntaxError: Unexpected number

Post by LAN-Opfer »

...thx a lot - I looked for my custom JavaScript code, but it was a Codedevice:

Code: Select all

(zway.devices[13].instances[0].commandClasses.38.data.level.value == 0) ? "On" : "Off"
instead of:

Code: Select all

(zway.devices[13].instances[0].commandClasses[38].data.level.value == 0) ? "off" : "on"
Uwe
Z-Way v2.0.1-rc18 on Raspberry Pi
Post Reply