1.2beta provision "refresh" exception

Hi.

When i´m trying to use the embedded “refresh” provision i´m getting the following error in genieacs-cwmp.log:

[ERROR] Uncaught exception; pid=12334 exceptionName="TypeError" exceptionMessage="Cannot read property 'length' of undefined" exceptionStack="TypeError: Cannot read property 'length' of undefined\n at Function.parsePath (/opt/genieacs/bin/genieacs-cwmp:2:38190)\n at Function.parse (/opt/genieacs/bin/genieacs-cwmp:2:38947)\n at Object.refresh$1 [as refresh] (/opt/genieacs/bin/genieacs-cwmp:2:74484)\n at Promise.all.t.map (/opt/genieacs/bin/genieacs-cwmp:2:87765)\n at Array.map (<anonymous>)\n at runProvisions (/opt/genieacs/bin/genieacs-cwmp:2:87632)\n at rpcRequest (/opt/genieacs/bin/genieacs-cwmp:2:92525)\n at applyPresets (/opt/genieacs/bin/genieacs-cwmp:2:120551)\n at process._tickCallback (internal/process/next_tick.js:68:7)"

Is there anything you can do about it?

Can you try the latest master branch and let me know if you still see this exception?

Hi, I’ve upgraded to the latest master version and the situation is the same:

2019-10-21T09:12:39.769Z [ERROR] Uncaught exception; pid=28190 exceptionName="TypeError" exceptionMessage="Cannot read property 'length' of undefined" exceptionStack="TypeError: Cannot read property 'length' of undefined\n    at Function.parsePath (/opt/genieacs/bin/genieacs-cwmp:2:38190)\n    at Function.parse (/opt/genieacs/bin/genieacs-cwmp:2:38947)\n    at Object.refresh$1 [as refresh] (/opt/genieacs/bin/genieacs-cwmp:2:74484)\n    at Promise.all.t.map (/opt/genieacs/bin/genieacs-cwmp:2:87765)\n    at Array.map (<anonymous>)\n    at runProvisions (/opt/genieacs/bin/genieacs-cwmp:2:87632)\n    at rpcRequest (/opt/genieacs/bin/genieacs-cwmp:2:92525)\n    at applyPresets (/opt/genieacs/bin/genieacs-cwmp:2:120551)\n    at process._tickCallback (internal/process/next_tick.js:68:7)"
2019-10-21T09:12:39.837Z [ERROR] Worker died; pid=28190 exitCode=0
2019-10-21T09:12:40.258Z [INFO] Worker listening; pid=28694 address="127.0.0.1" port=7547

I think I know what the problem is. You’re not passing the parameter as argument. I’ll fix this such that it silently ignores it rather than crash.

Thank you. What can I pass as parameter there?