Hey,
for some time I get an error Cannot read property 'trx' of undefined
without further information. First I didn’t care about that too much, but now I noticed that this error prevent me from editing devices. I enabled all types of messages in the log and found some additional debug output. Maybe someone can help identify this:
debug [pimatic]: TypeError: Cannot read property 'trx' of undefined
at /home/pi/pimatic-app/node_modules/pimatic/lib/database.coffee:200:44
at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromiseCtx (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:606:10)
at Async._drainQueue (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:138:12)
at Async._drainQueues (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues [as _onImmediate] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:17:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)
21:11:05error [pimatic]: Cannot read property 'trx' of undefined
I did have to install bluebird by manually doing npm install bluebird
as it was not correctly installed but needed for mysensors. I don’t know if it is related to that…