netfishers-onl / Netshot

Network Configuration and Compliance Management
http://www.netfishers.onl/netshot
239 stars 57 forks source link

Error using driver #295

Open opiym-7 opened 6 months ago

opiym-7 commented 6 months ago

Hello. I use a self-written driver for RouterOS. The driver works correctly for all devices except one. There are the same devices on my network with the same firmware. It gives this error. Tell me please what does it mean?

[INFO] Snapshot task for device [NONAME] (172.20.20.20). [INFO] Auto-trying SSH with credentials GW. [INFO] Connected using SSH to 172.20.20.20.1:22 using credentials GW. [ERROR] Error while running snapshot using driver RouterOS: 'TypeError: invokeMember (set) on onl.netfishers.netshot.device.script.helper.JsDeviceHelper failed due to: no applicable overload found (overloads: [Method[public void onl.netfishers.netshot.device.script.helper.JsDeviceHelper.set(java.lang.String,java.lang.Double)], Method[public void onl.netfishers.netshot.device.script.helper.JsDeviceHelper.set(java.lang.String,java.lang.String)], Method[public void onl.netfishers.netshot.device.script.helper.JsDeviceHelper.set(java.lang.String,java.lang.Boolean)]], arguments: [name (TruffleString), com.oracle.truffle.js.runtime.builtins.JSArrayObject@132eb6ca (JSArrayObject)])'. [ERROR] Error while taking the snapshot: TypeError: invokeMember (set) on onl.netfishers.netshot.device.script.helper.JsDeviceHelper failed due to: no applicable overload found (overloads: [Method[public void onl.netfishers.netshot.device.script.helper.JsDeviceHelper.set(java.lang.String,java.lang.Double)], Method[public void onl.netfishers.netshot.device.script.helper.JsDeviceHelper.set(java.lang.String,java.lang.String)], Method[public void onl.netfishers.netshot.device.script.helper.JsDeviceHelper.set(java.lang.String,java.lang.Boolean)]], arguments: [name (TruffleString), com.oracle.truffle.js.runtime.builtins.JSArrayObject@132eb6ca (JSArrayObject)])

SCadilhac commented 6 months ago

This means you are trying to device.set() an array instead of a simple type (number or string).