Virtual parameters

Dan Morphis dan at milkcarton.com
Wed Feb 22 10:51:03 EST 2017


I'm working on upgrading to v1.1. I'm running latest master.

I created a new virtual parameter called "mac" and used the example script
at https://github.com/zaidka/genieacs/wiki/Virtual-Parameters

Is there any way to log values inside the script? I tried console.log,
and let logger = require('./logger'); to no avail.

When the script runs, I get this error:

2017-02-22T15:24:42.863Z [ERROR] Uncaught exception;
exceptionName="SyntaxError" exceptionMessage="Unexpected token )"
exceptionStack="mac:12
for (d.size) {
           ^
           SyntaxError: Unexpected token )
at /opt/genieacs/lib/cache.js:299:45
at handleCallback (/opt/genieacs/node_modules/mongodb/lib/utils.js:95:56)
at /opt/genieacs/node_modules/mongodb/lib/cursor.js:852:16
at handleCallback
(/opt/genieacs/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:171:5)
at setCursorDeadAndNotified
(/opt/genieacs/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:505:3)
at nextFunction
(/opt/genieacs/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:651:7)
at Cursor.next [as _next]
(/opt/genieacs/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:692:3)
at fetchDocs (/opt/genieacs/node_modules/mongodb/lib/cursor.js:848:10)
at /opt/genieacs/node_modules/mongodb/lib/cursor.js:871:7
at handleCallback
(/opt/genieacs/node_modules/mongodb/node_modules/mongodb-core/lib/cursor.js:171:5)


Any help is appreciated!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20170222/cc8e4f40/attachment.html>


More information about the Users mailing list