Hey guys,
I have problem starting app on Matrix using service for detect faces.
Error: Uncaught exception: Error: .matrix_heartbeat.Beat#services is not a field: undefined
My config.yaml
configVersion: 2
name: frank
description: frank
keywords: frank
services:
faceTest:
engine: detection
type: demographics
My app.js
var request = require('request');
var url = 'http://192.168.192.156:8080/webhooks';
matrix.led('blue').render();
matrix.init('face').then(function(data) {
matrix.led('red').render();
console.log('>>>>>>>>>>>>>>>>', data);
request({url: url, method: "POST", json: data});
});
Full log error
heartbeat activeApp-> frank { faceTest: { engine: 'detection', type: 'demographics' } } +2s
heartbeat 💓-> { services: [ 'FACE_DEMOGRAPHICS' ] } +3ms
Uncaught exception: Error: .matrix_heartbeat.Beat#services is not a field: undefined
at Error (native)
at MessagePrototype.set (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2472:35)
at MessagePrototype.set (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2466:38)
at Message (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2395:34)
at Object.beat (/home/pi/matrix-os/lib/device/heartbeat.js:92:16)
at Timeout._repeat (/home/pi/matrix-os/lib/device/heartbeat.js:24:12)
at Timeout.wrapper [as _onTimeout] (timers.js:425:11)
at tryOnTimeout (timers.js:232:11)
at Timer.listOnTimeout (timers.js:202:5) Error: .matrix_heartbeat.Beat#services is not a field: undefined
at Error (native)
at MessagePrototype.set (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2472:35)
at MessagePrototype.set (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2466:38)
at Message (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2395:34)
at Object.beat (/home/pi/matrix-os/lib/device/heartbeat.js:92:16)
at Timeout._repeat (/home/pi/matrix-os/lib/device/heartbeat.js:24:12)
at Timeout.wrapper [as _onTimeout] (timers.js:425:11)
at tryOnTimeout (timers.js:232:11)
at Timer.listOnTimeout (timers.js:202:5)
UNKNOWN ERROR! Error: .matrix_heartbeat.Beat#services is not a field: undefined
at Error (native)
at MessagePrototype.set (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2472:35)
at MessagePrototype.set (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2466:38)
at Message (/home/pi/matrix-os/node_modules/protobufjs/dist/protobuf.js:2395:34)
at Object.beat (/home/pi/matrix-os/lib/device/heartbeat.js:92:16)
at Timeout._repeat (/home/pi/matrix-os/lib/device/heartbeat.js:24:12)
at Timeout.wrapper [as _onTimeout] (timers.js:425:11)
at tryOnTimeout (timers.js:232:11)
at Timer.listOnTimeout (timers.js:202:5)
matrix DESTROYING +12ms
Unable to clean, exitting...