This article decribes the issue when running a custom Jinja function in FortiSOAR release 7.5.0, the following error is thrown:
'Argument 'v1' has incorrect type (expected str, got NoneType)'.
Scope
FortiSOAR v7.5.0.
Solution
Step 1: Download and unzip the ‘util_so.zip’ file attached to this article to the FortiSOAR instance. This file contains the ‘util.so’ file.
Step 2: Take a backup of the existing util.so file:
cp /opt/cyops-workflow/sealab/utility/util.so
Step 3: Copy the downloaded util.so file to the same location:
cp util.so /opt/cyops-workflow/sealab/utility/util.so
Step 4: Check the permissions of the util.so file:
ls -al /opt/cyops-workflow/sealab/utility/util.so
The permissions should be ‘nginx:nginx’.
If the permissions are set to different a user, change the permissions:
chown nginx:nginx /opt/cyops-workflow/sealab/utility/util.so
Step 5: Restart the workflow service:
systemctl restart uwsgi celeryd