OnCommandRun failure: Arithmetic operation resulted in an overflow.
I'm getting this error when attempting to run a batch file using the following MQTT payload:
{ "command": "D:\i25 Release\updateip.bat", "args": "123.123.123.123, 123.123.123.123", "path": "D:\i25 Release\", "user": "" }
I've sanitized the actual arguments, but it has the same text structure as what I have included here.
With debug logging turned on, I'm getting the following additional info in the log: Run - Command: D:\i25 Release\updateip.bat Args: updateip.bat 123.123.123.123, 123.123.123.123 Path: D:\i25 Release\ User:
(Also sanitized)
The batch file does not do any sort of arithmetic, it simply does a find and replace on a few text files using the arguments provided. Should the args field be an array if there are multiple arguments instead of a comma separated string?
Or, is it maybe the space in the path?
It seems a little odd that the batch file name is in both the Command and Args listing in the debug log output. Additionally, this command seems to trigger several times based on what I am seeing in the log. I'm not sure if that is because of the error or if it is another issue.