Technote Details :: When using module functions I get an error regarding its arguments
Issue
When trying to apply a function from an installed KTML plugin, I get an error message:
"MODULE_NAME" module error. Argument "argument_name" is invalid.
Reason
This happens because the argument passed by the user interface to the module is of an incompatible type, or out of the supported range. The module cannot interpret the value to make use of it in the context, and throws this error.
Solution
To solve this problem you have to check and make sure that only valid values are passed to the module through KTML's user interface, or other modules that access this function. You can do so by examining the client and server-side of the module at fault, and checking the expected argument types.